undo some ics importer changes
This commit is contained in:
parent
cf11065223
commit
cef4aae783
|
@ -1,13 +1,13 @@
|
||||||
package com.simplemobiletools.calendar.helpers
|
package com.simplemobiletools.calendar.helpers
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.Log
|
|
||||||
import com.simplemobiletools.calendar.R
|
import com.simplemobiletools.calendar.R
|
||||||
import com.simplemobiletools.calendar.extensions.dbHelper
|
import com.simplemobiletools.calendar.extensions.dbHelper
|
||||||
import com.simplemobiletools.calendar.extensions.isXMonthlyRepetition
|
import com.simplemobiletools.calendar.extensions.isXMonthlyRepetition
|
||||||
import com.simplemobiletools.calendar.extensions.isXWeeklyRepetition
|
import com.simplemobiletools.calendar.extensions.isXWeeklyRepetition
|
||||||
import com.simplemobiletools.calendar.extensions.seconds
|
import com.simplemobiletools.calendar.extensions.seconds
|
||||||
import com.simplemobiletools.calendar.helpers.IcsImporter.ImportResult.*
|
import com.simplemobiletools.calendar.helpers.IcsImporter.ImportResult.*
|
||||||
|
import com.simplemobiletools.calendar.models.Event
|
||||||
import com.simplemobiletools.calendar.models.EventType
|
import com.simplemobiletools.calendar.models.EventType
|
||||||
import org.joda.time.DateTimeZone
|
import org.joda.time.DateTimeZone
|
||||||
import org.joda.time.format.DateTimeFormat
|
import org.joda.time.format.DateTimeFormat
|
||||||
|
@ -47,9 +47,7 @@ class IcsImporter {
|
||||||
if (line.trim().isEmpty())
|
if (line.trim().isEmpty())
|
||||||
continue
|
continue
|
||||||
|
|
||||||
Log.e("DEBUG", "line $line")
|
if (line.substring(0, 1) == " ") {
|
||||||
|
|
||||||
/*if (line.substring(0, 1) == " ") {
|
|
||||||
line = prevLine + line.trim()
|
line = prevLine + line.trim()
|
||||||
eventsFailed--
|
eventsFailed--
|
||||||
}
|
}
|
||||||
|
@ -107,7 +105,7 @@ class IcsImporter {
|
||||||
eventsImported++
|
eventsImported++
|
||||||
resetValues()
|
resetValues()
|
||||||
}
|
}
|
||||||
prevLine = line*/
|
prevLine = line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
|
Loading…
Reference in New Issue