From cef4aae783f3edde1bfc8b6fe291365593d31a95 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 16 May 2017 20:22:08 +0200 Subject: [PATCH] undo some ics importer changes --- .../com/simplemobiletools/calendar/helpers/IcsImporter.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 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 14b4d9197..f91e3f1ee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt @@ -1,13 +1,13 @@ package com.simplemobiletools.calendar.helpers import android.content.Context -import android.util.Log import com.simplemobiletools.calendar.R import com.simplemobiletools.calendar.extensions.dbHelper import com.simplemobiletools.calendar.extensions.isXMonthlyRepetition import com.simplemobiletools.calendar.extensions.isXWeeklyRepetition import com.simplemobiletools.calendar.extensions.seconds import com.simplemobiletools.calendar.helpers.IcsImporter.ImportResult.* +import com.simplemobiletools.calendar.models.Event import com.simplemobiletools.calendar.models.EventType import org.joda.time.DateTimeZone import org.joda.time.format.DateTimeFormat @@ -47,9 +47,7 @@ class IcsImporter { if (line.trim().isEmpty()) continue - Log.e("DEBUG", "line $line") - - /*if (line.substring(0, 1) == " ") { + if (line.substring(0, 1) == " ") { line = prevLine + line.trim() eventsFailed-- } @@ -107,7 +105,7 @@ class IcsImporter { eventsImported++ resetValues() } - prevLine = line*/ + prevLine = line } } } catch (e: Exception) {