mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-27 16:53:28 +01:00
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
Block a user