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_caldav_sync.isChecked = newCalendarIds.isNotEmpty()
|
||||
config.caldavSync = newCalendarIds.isNotEmpty()
|
||||
toast(R.string.syncing)
|
||||
if (settings_caldav_sync.isChecked) {
|
||||
toast(R.string.syncing)
|
||||
}
|
||||
|
||||
Thread {
|
||||
if (newCalendarIds.isNotEmpty()) {
|
||||
|
@ -192,7 +194,9 @@ class SettingsActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
dbHelper.deleteEventTypesWithCalendarId(TextUtils.join(",", removedCalendarIds))
|
||||
toast(R.string.synchronization_completed)
|
||||
if (settings_caldav_sync.isChecked) {
|
||||
toast(R.string.synchronization_completed)
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue