do not show the Syncing... if no caldav calendar has been selected
This commit is contained in:
parent
971c569cb0
commit
6b74fc4b2e
|
@ -159,6 +159,10 @@ class SettingsActivity : SimpleActivity() {
|
|||
|
||||
SelectCalendarsDialog(this) {
|
||||
val newCalendarIds = config.getSyncedCalendarIdsAsList()
|
||||
if (newCalendarIds.isEmpty() && !config.caldavSync) {
|
||||
return@SelectCalendarsDialog
|
||||
}
|
||||
|
||||
settings_manage_synced_calendars_holder.beVisibleIf(newCalendarIds.isNotEmpty())
|
||||
settings_caldav_sync.isChecked = newCalendarIds.isNotEmpty()
|
||||
config.caldavSync = newCalendarIds.isNotEmpty()
|
||||
|
|
Loading…
Reference in New Issue