Delete original event to avoid duplication
This commit is contained in:
parent
05084ea330
commit
fe09a937ec
|
@ -1382,6 +1382,10 @@ class EventActivity : SimpleActivity() {
|
||||||
mEvent.id = null
|
mEvent.id = null
|
||||||
eventsHelper.apply {
|
eventsHelper.apply {
|
||||||
addEventRepeatLimit(eventId, mEventOccurrenceTS)
|
addEventRepeatLimit(eventId, mEventOccurrenceTS)
|
||||||
|
if (mEventOccurrenceTS == originalEvent.startTS) {
|
||||||
|
deleteEvent(eventId, true)
|
||||||
|
}
|
||||||
|
|
||||||
insertEvent(mEvent, addToCalDAV = true, showToasts = true) {
|
insertEvent(mEvent, addToCalDAV = true, showToasts = true) {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
|
@ -495,6 +495,10 @@ class TaskActivity : SimpleActivity() {
|
||||||
mTask.id = null
|
mTask.id = null
|
||||||
eventsHelper.apply {
|
eventsHelper.apply {
|
||||||
addEventRepeatLimit(taskId, mTaskOccurrenceTS)
|
addEventRepeatLimit(taskId, mTaskOccurrenceTS)
|
||||||
|
if (mTaskOccurrenceTS == originalTask.startTS) {
|
||||||
|
deleteEvent(taskId, true)
|
||||||
|
}
|
||||||
|
|
||||||
insertTask(mTask, showToasts = true) {
|
insertTask(mTask, showToasts = true) {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue