mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
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()
|
||||
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))
|
||||
if (settings_caldav_sync.isChecked) {
|
||||
toast(R.string.synchronization_completed)
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user