mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-26 05:20:10 +01:00
adding a null check at text fragment
This commit is contained in:
parent
c1e664d9bb
commit
556b4aceca
@ -210,7 +210,7 @@ class TextFragment : NoteFragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun hasUnsavedChanges() = getCurrentNoteViewText() != note!!.getNoteStoredValue(requireContext())
|
fun hasUnsavedChanges() = note != null && getCurrentNoteViewText() != note!!.getNoteStoredValue(requireContext())
|
||||||
|
|
||||||
fun focusEditText() {
|
fun focusEditText() {
|
||||||
view.text_note_view.requestFocus()
|
view.text_note_view.requestFocus()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user