remove all local caldav events at unchecking Caldav sync
This commit is contained in:
parent
5cef06637f
commit
e447df141d
|
@ -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())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue