delete note widgets after deleting a note

This commit is contained in:
tibbi committed 2018-09-13 21:19:16 +02:00
1 parent e9ebe65ea6
commit 501efea07b
1 file changed
+1
@@ -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 {