remove all local caldav events at unchecking Caldav sync

This commit is contained in:
tibbi 2017-08-17 11:42:41 +02:00
parent 5cef06637f
commit e447df141d
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class SettingsActivity : SimpleActivity() {
settings_caldav_sync.isChecked = false settings_caldav_sync.isChecked = false
config.caldavSync = false config.caldavSync = false
settings_manage_synced_calendars_holder.beGone() settings_manage_synced_calendars_holder.beGone()
config.getCalendarIdsAsList().forEach {
CalDAVEventsHandler(applicationContext).deleteCalDAVCalendarEvents(it.toLong())
}
} }
} }