From ce134aad28cbf7d43061406afc591c41827c6b76 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 12 Mar 2021 09:43:34 +0100 Subject: [PATCH] fix some ics importing related glitches --- .../com/simplemobiletools/calendar/pro/helpers/IcsImporter.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsImporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsImporter.kt index ceb9c03ab..65e60167f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsImporter.kt @@ -166,6 +166,7 @@ class IcsImporter(val activity: SimpleActivity) { } if (curTitle.isEmpty() || curStart == -1L) { + line = curLine continue } @@ -173,6 +174,7 @@ class IcsImporter(val activity: SimpleActivity) { val eventToUpdate = existingEvents.filter { curImportId.isNotEmpty() && curImportId == it.importId }.sortedByDescending { it.lastUpdated }.firstOrNull() if (eventToUpdate != null && eventToUpdate.lastUpdated >= curLastModified) { eventsAlreadyExist++ + line = curLine continue } @@ -198,6 +200,7 @@ class IcsImporter(val activity: SimpleActivity) { event.importId = event.hashCode().toString() if (existingEvents.map { it.importId }.contains(event.importId)) { eventsAlreadyExist++ + line = curLine continue } }