Merge pull request #671 from esensar/view-state-restore-crash

Fix crash when restoring state on TextFragment
This commit is contained in:
Tibor Kaputa 2023-08-16 19:03:28 +02:00 committed by GitHub
commit 6e7976ce77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ class TextFragment : NoteFragment() {
if (savedInstanceState != null && note != null && savedInstanceState.containsKey(TEXT)) {
skipTextUpdating = true
val newText = savedInstanceState.getString(TEXT) ?: ""
innerBinding.root.findViewById<MyTextView>(R.id.text_note_view).text = newText
innerBinding.root.findViewById<TextView>(R.id.text_note_view).text = newText
}
}