Skip to content

Commit 6e7976c

Browse files
authored
Merge pull request #671 from esensar/view-state-restore-crash
Fix crash when restoring state on TextFragment
2 parents d98c9bc + a24d322 commit 6e7976c

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class TextFragment : NoteFragment() {
131131
if (savedInstanceState != null && note != null && savedInstanceState.containsKey(TEXT)) {
132132
skipTextUpdating = true
133133
val newText = savedInstanceState.getString(TEXT) ?: ""
134-
innerBinding.root.findViewById<MyTextView>(R.id.text_note_view).text = newText
134+
innerBinding.root.findViewById<TextView>(R.id.text_note_view).text = newText
135135
}
136136
}
137137

0 commit comments

Comments
 (0)