mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-20 02:20:06 +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)) {
|
if (savedInstanceState != null && note != null && savedInstanceState.containsKey(TEXT)) {
|
||||||
skipTextUpdating = true
|
skipTextUpdating = true
|
||||||
val newText = savedInstanceState.getString(TEXT) ?: ""
|
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