mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-03 15:47:40 +01:00
delete note widgets after deleting a note
This commit is contained in:
parent
e9ebe65ea6
commit
501efea07b
@ -112,6 +112,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
|
||||
|
||||
fun deleteNote(id: Int) {
|
||||
mDb.delete(NOTES_TABLE_NAME, "$COL_ID = $id", null)
|
||||
mDb.delete(WIDGETS_TABLE_NAME, "$COL_NOTE_ID = $id", null)
|
||||
}
|
||||
|
||||
fun doesNoteTitleExist(title: String): Boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user