diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt index 3338409c3..937c2fbb7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -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() } }