From 585b51b0eb0c2c1df65f641b88d3dbf2f5ba5d52 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 6 May 2022 23:11:28 +0200 Subject: [PATCH] avoid importing ics files as duplicates --- .../com/simplemobiletools/calendar/pro/helpers/EventsHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/EventsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/EventsHelper.kt index 7077edbb3..8ec0b1fce 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/EventsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/EventsHelper.kt @@ -116,7 +116,7 @@ class EventsHelper(val context: Context) { context.updateWidgets() context.scheduleNextEventReminder(event, showToasts) - if (addToCalDAV && event.source != SOURCE_SIMPLE_CALENDAR && config.caldavSync) { + if (addToCalDAV && config.caldavSync && event.source != SOURCE_SIMPLE_CALENDAR && event.source != SOURCE_IMPORTED_ICS) { context.calDAVHelper.insertCalDAVEvent(event) }