properly clean up removed widgets from the database

This commit is contained in:
tibbi
2018-12-16 21:01:08 +01:00
parent af199908d9
commit 42c14576be
3 changed files with 13 additions and 1 deletions

View File

@ -16,4 +16,7 @@ interface WidgetsDao {
@Query("DELETE FROM widgets WHERE note_id = :noteId")
fun deleteNoteWidgets(noteId: Long)
@Query("DELETE FROM widgets WHERE widget_id = :widgetId")
fun deleteWidgetId(widgetId: Int)
}