clean up repeatable event exceptions if the parent event is deleted

This commit is contained in:
tibbi 2017-03-05 18:57:51 +01:00
parent 678d9e0d06
commit b286c62873

View File

@ -271,6 +271,9 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val metaSelection = "$COL_EVENT_ID IN ($args)"
mDb.delete(META_TABLE_NAME, metaSelection, null)
val exceptionSelection = "$COL_PARENT_EVENT_ID IN ($args)"
mDb.delete(EXCEPTIONS_TABLE_NAME, exceptionSelection, null)
context.updateWidgets()
mEventsListener?.eventsDeleted(ids.size)
}