undo some ics importer changes

This commit is contained in:
tibbi 2017-05-16 20:22:08 +02:00
parent cf11065223
commit cef4aae783
1 changed files with 3 additions and 5 deletions

View File

@ -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) {