From 73dacba5466edf0363f7c194d9f44db5001dc1ba Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 2 May 2018 21:00:39 +0200 Subject: [PATCH] replace "\," with "," at importing events --- .../com/simplemobiletools/calendar/helpers/IcsImporter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt index 4dd240e7c..222faffc0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt @@ -85,9 +85,9 @@ class IcsImporter(val activity: SimpleActivity) { curEnd = curStart + Parser().parseDurationSeconds(duration) } else if (line.startsWith(SUMMARY) && !isNotificationDescription) { curTitle = line.substring(SUMMARY.length) - curTitle = getTitle(curTitle).replace("\\n", "\n") + curTitle = getTitle(curTitle).replace("\\n", "\n").replace("\\,", ",") } else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) { - curDescription = line.substring(DESCRIPTION.length).replace("\\n", "\n") + curDescription = line.substring(DESCRIPTION.length).replace("\\n", "\n").replace("\\,", ",") isDescription = true } else if (line.startsWith(UID)) { curImportId = line.substring(UID.length).trim() @@ -119,7 +119,7 @@ class IcsImporter(val activity: SimpleActivity) { curRepeatExceptions.add(getTimestamp(value)) } else if (line.startsWith(LOCATION)) { - curLocation = line.substring(LOCATION.length) + curLocation = line.substring(LOCATION.length).replace("\\,", ",") } else if (line == END_ALARM) { if (isProperReminderAction && curReminderTriggerMinutes != -1) { curReminderMinutes.add(curReminderTriggerMinutes)