fix #1311, show the save/discard prompt at changing the event calendar

This commit is contained in:
tibbi 2021-03-21 19:39:50 +01:00
parent ab0a8153f1
commit 9bff69baf1
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,7 @@ class EventActivity : SimpleActivity() {
mRepeatInterval != mEvent.repeatInterval || mRepeatInterval != mEvent.repeatInterval ||
mRepeatRule != mEvent.repeatRule || mRepeatRule != mEvent.repeatRule ||
mEventTypeId != mEvent.eventType || mEventTypeId != mEvent.eventType ||
mEventCalendarId != mEvent.getCalDAVCalendarId() ||
hasTimeChanged) { hasTimeChanged) {
return true return true
} }
@ -970,6 +971,7 @@ class EventActivity : SimpleActivity() {
DELETE_FUTURE_OCCURRENCES -> eventsHelper.addEventRepeatLimit(mEvent.id!!, mEventOccurrenceTS) DELETE_FUTURE_OCCURRENCES -> eventsHelper.addEventRepeatLimit(mEvent.id!!, mEventOccurrenceTS)
DELETE_ALL_OCCURRENCES -> eventsHelper.deleteEvent(mEvent.id!!, true) DELETE_ALL_OCCURRENCES -> eventsHelper.deleteEvent(mEvent.id!!, true)
} }
runOnUiThread { runOnUiThread {
finish() finish()
} }