mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 01:50:07 +01:00
Merge pull request #671 from esensar/view-state-restore-crash
Fix crash when restoring state on TextFragment
This commit is contained in:
commit
6e7976ce77
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user