mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-09-18 01:40:34 -04:00
adding a null check at text fragment
This commit is contained in:
1 parent
c1e664d9bb
commit
556b4aceca
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user