mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-10 00:10:04 +01:00
clean up repeatable event exceptions if the parent event is deleted
This commit is contained in:
parent
678d9e0d06
commit
b286c62873
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user