diff --git a/sample/src/main/java/com/infomaniak/lib/richhtmleditor/sample/EditorSampleFragment.kt b/sample/src/main/java/com/infomaniak/lib/richhtmleditor/sample/EditorSampleFragment.kt index e517cd9..f38257f 100644 --- a/sample/src/main/java/com/infomaniak/lib/richhtmleditor/sample/EditorSampleFragment.kt +++ b/sample/src/main/java/com/infomaniak/lib/richhtmleditor/sample/EditorSampleFragment.kt @@ -146,12 +146,8 @@ class EditorSampleFragment : Fragment() { } } - override fun onSaveInstanceState(outState: Bundle) { - editorSampleViewModel.editorReloader.save(binding.editor) - super.onSaveInstanceState(outState) - } - override fun onDestroyView() { + editorSampleViewModel.editorReloader.save(binding.editor) super.onDestroyView() _binding = null }