mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-03 07:37:35 +01:00
fix a glitch with deleting the default note
This commit is contained in:
parent
f26ea25a1e
commit
54fa5096ee
@ -128,6 +128,13 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
|||||||
cursor?.close()
|
cursor?.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (notes.isEmpty()) {
|
||||||
|
val generalNote = mContext.resources.getString(R.string.general_note)
|
||||||
|
val note = Note(1, generalNote, "", TYPE_NOTE)
|
||||||
|
insertNote(note)
|
||||||
|
return arrayListOf(note)
|
||||||
|
}
|
||||||
|
|
||||||
return notes
|
return notes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user