mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-09-18 09:57:51 -04:00
delete note widgets after deleting a note
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user