do not show the "Syncing..." and "Sync complete" messages at disabling sync

This commit is contained in:
tibbi 2018-05-02 22:11:32 +02:00
parent 73dacba546
commit be598ddb51
1 changed files with 6 additions and 2 deletions

View File

@ -168,7 +168,9 @@ class SettingsActivity : SimpleActivity() {
settings_manage_synced_calendars_holder.beVisibleIf(newCalendarIds.isNotEmpty()) settings_manage_synced_calendars_holder.beVisibleIf(newCalendarIds.isNotEmpty())
settings_caldav_sync.isChecked = newCalendarIds.isNotEmpty() settings_caldav_sync.isChecked = newCalendarIds.isNotEmpty()
config.caldavSync = newCalendarIds.isNotEmpty() config.caldavSync = newCalendarIds.isNotEmpty()
if (settings_caldav_sync.isChecked) {
toast(R.string.syncing) toast(R.string.syncing)
}
Thread { Thread {
if (newCalendarIds.isNotEmpty()) { if (newCalendarIds.isNotEmpty()) {
@ -192,7 +194,9 @@ class SettingsActivity : SimpleActivity() {
} }
} }
dbHelper.deleteEventTypesWithCalendarId(TextUtils.join(",", removedCalendarIds)) dbHelper.deleteEventTypesWithCalendarId(TextUtils.join(",", removedCalendarIds))
if (settings_caldav_sync.isChecked) {
toast(R.string.synchronization_completed) toast(R.string.synchronization_completed)
}
}.start() }.start()
} }
} }