do not show the "Syncing..." and "Sync complete" messages at disabling sync
This commit is contained in:
parent
73dacba546
commit
be598ddb51
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue