Skip to content

Commit 501efea

Browse files
committed
delete note widgets after deleting a note
1 parent e9ebe65 commit 501efea

File tree

1 file changed

+1
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/helpers

1 file changed

+1
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
112112

113113
fun deleteNote(id: Int) {
114114
mDb.delete(NOTES_TABLE_NAME, "$COL_ID = $id", null)
115+
mDb.delete(WIDGETS_TABLE_NAME, "$COL_NOTE_ID = $id", null)
115116
}
116117

117118
fun doesNoteTitleExist(title: String): Boolean {

0 commit comments

Comments
 (0)