From 1934f648d9a7a0c8cc296d7942c501823f26cd05 Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Tue, 11 Jan 2022 15:43:22 +0100 Subject: [PATCH] Fixed no confirmation dialog after first edit of imported event (#1478) --- .../simplemobiletools/calendar/pro/activities/EventActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index aecbaa905..260d89c37 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -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 }