mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-01-01 12:08:07 -05:00
delete note widgets after deleting a note
This commit is contained in:
@@ -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