check if the latest used calendar id is still valid
This commit is contained in:
parent
0c1c752260
commit
495f8c56b1
|
@ -136,7 +136,9 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||
|
||||
val addHours = if (intent.getBooleanExtra(NEW_EVENT_SET_HOUR_DURATION, false)) 1 else 0
|
||||
mEventEndDateTime = mEventStartDateTime.plusHours(addHours)
|
||||
mEventCalendarId = config.lastUsedCaldavCalendar
|
||||
|
||||
val isLastCaldavCalendarOK = config.caldavSync && config.getSyncedCalendarIdsAsList().contains(config.lastUsedCaldavCalendar.toString())
|
||||
mEventCalendarId = if (isLastCaldavCalendarOK) config.lastUsedCaldavCalendar else STORED_LOCALLY_ONLY
|
||||
}
|
||||
|
||||
private fun showReminder1Dialog() {
|
||||
|
|
Loading…
Reference in New Issue