add flag_all_day to imported events only when appropriate

This commit is contained in:
tibbi 2017-04-23 22:48:38 +02:00
parent 68cfefe061
commit b6806dfbe2
1 changed files with 3 additions and 1 deletions

View File

@ -118,8 +118,10 @@ class IcsImporter {
private fun getTimestamp(fullString: String): Int {
try {
return if (fullString.startsWith(';')) {
curFlags = curFlags or FLAG_ALL_DAY
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
if (!value.contains("T"))
curFlags = curFlags or FLAG_ALL_DAY
parseDateTimeValue(value)
} else {
parseDateTimeValue(fullString.substring(1))