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
|
||||
eventsHelper.apply {
|
||||
addEventRepeatLimit(eventId, mEventOccurrenceTS)
|
||||
if (mEventOccurrenceTS == originalEvent.startTS) {
|
||||
deleteEvent(eventId, true)
|
||||
}
|
||||
|
||||
insertEvent(mEvent, addToCalDAV = true, showToasts = true) {
|
||||
finish()
|
||||
}
|
||||
|
|
|
@ -495,6 +495,10 @@ class TaskActivity : SimpleActivity() {
|
|||
mTask.id = null
|
||||
eventsHelper.apply {
|
||||
addEventRepeatLimit(taskId, mTaskOccurrenceTS)
|
||||
if (mTaskOccurrenceTS == originalTask.startTS) {
|
||||
deleteEvent(taskId, true)
|
||||
}
|
||||
|
||||
insertTask(mTask, showToasts = true) {
|
||||
finish()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue