mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-16 20:00:39 +01:00
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…
x
Reference in New Issue
Block a user