delete note widgets after deleting a note

This commit is contained in:
tibbi 2018-09-13 21:19:16 +02:00
parent e9ebe65ea6
commit 501efea07b
1 changed files with 1 additions and 0 deletions

View File

@ -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 {