mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding an extra check to avoid deleting wrong notes
This commit is contained in:
@ -118,7 +118,7 @@ class TextFragment : NoteFragment() {
|
||||
|
||||
val fileContents = note!!.getNoteStoredValue()
|
||||
if (fileContents == null) {
|
||||
(activity as MainActivity).deleteNote(false)
|
||||
(activity as MainActivity).deleteNote(false, note!!)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user