mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
clean up repeatable event exceptions if the parent event is deleted
This commit is contained in:
@@ -271,6 +271,9 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
val metaSelection = "$COL_EVENT_ID IN ($args)"
|
val metaSelection = "$COL_EVENT_ID IN ($args)"
|
||||||
mDb.delete(META_TABLE_NAME, metaSelection, null)
|
mDb.delete(META_TABLE_NAME, metaSelection, null)
|
||||||
|
|
||||||
|
val exceptionSelection = "$COL_PARENT_EVENT_ID IN ($args)"
|
||||||
|
mDb.delete(EXCEPTIONS_TABLE_NAME, exceptionSelection, null)
|
||||||
|
|
||||||
context.updateWidgets()
|
context.updateWidgets()
|
||||||
mEventsListener?.eventsDeleted(ids.size)
|
mEventsListener?.eventsDeleted(ids.size)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user