mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 03:50:07 +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() {
|
||||
view.text_note_view.requestFocus()
|
||||
|
Loading…
x
Reference in New Issue
Block a user