mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
remove all local caldav events at unchecking Caldav sync
This commit is contained in:
@ -125,6 +125,9 @@ class SettingsActivity : SimpleActivity() {
|
||||
settings_caldav_sync.isChecked = false
|
||||
config.caldavSync = false
|
||||
settings_manage_synced_calendars_holder.beGone()
|
||||
config.getCalendarIdsAsList().forEach {
|
||||
CalDAVEventsHandler(applicationContext).deleteCalDAVCalendarEvents(it.toLong())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user