diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 3ab32eb2b..aec6ee8a2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -84,6 +84,7 @@ class EventActivity : SimpleActivity() { private var mEventCalendarId = STORED_LOCALLY_ONLY private var mWasActivityInitialized = false private var mWasContactsPermissionChecked = false + private var mWasCalendarChanged = false private var mAttendees = ArrayList() private var mAttendeeAutoCompleteViews = ArrayList() private var mAvailableContacts = ArrayList() @@ -298,7 +299,7 @@ class EventActivity : SimpleActivity() { mRepeatInterval != mEvent.repeatInterval || mRepeatRule != mEvent.repeatRule || mEventTypeId != mEvent.eventType || - mEventCalendarId != mEvent.getCalDAVCalendarId() || + mWasCalendarChanged || hasTimeChanged) { return true } @@ -881,6 +882,7 @@ class EventActivity : SimpleActivity() { mEventTypeId = config.lastUsedLocalEventTypeId updateEventType() } + mWasCalendarChanged = true mEventCalendarId = it config.lastUsedCaldavCalendarId = it updateCurrentCalendarInfo(getCalendarWithId(calendars, it))