fix #1311, show the save/discard prompt at changing the event calendar
This commit is contained in:
parent
ab0a8153f1
commit
9bff69baf1
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue