Merge pull request #1614 from Aga-C/fix-no-confirm-on-edit

Fixed no confirmation dialog after first edit of imported event (#1478)
This commit is contained in:
Tibor Kaputa 2022-01-14 10:25:05 +01:00 committed by GitHub
commit 56bd31f4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1176,7 +1176,7 @@ class EventActivity : SimpleActivity() {
}
// recreate the event if it was moved in a different CalDAV calendar
if (mEvent.id != null && oldSource != newSource) {
if (mEvent.id != null && oldSource != newSource && oldSource != SOURCE_IMPORTED_ICS) {
eventsHelper.deleteEvent(mEvent.id!!, true)
mEvent.id = null
}