trim some lines at importing checks
This commit is contained in:
parent
7a6d8f6882
commit
a4abfedf28
|
@ -73,7 +73,7 @@ class IcsImporter(val activity: SimpleActivity) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line == BEGIN_EVENT) {
|
if (line.trim() == BEGIN_EVENT) {
|
||||||
resetValues()
|
resetValues()
|
||||||
curEventTypeId = defaultEventTypeId
|
curEventTypeId = defaultEventTypeId
|
||||||
isParsingEvent = true
|
isParsingEvent = true
|
||||||
|
@ -151,15 +151,15 @@ class IcsImporter(val activity: SimpleActivity) {
|
||||||
curRecurrenceDayCode = Formatter.getDayCodeFromTS(timestamp)
|
curRecurrenceDayCode = Formatter.getDayCodeFromTS(timestamp)
|
||||||
} else if (line.startsWith(SEQUENCE)) {
|
} else if (line.startsWith(SEQUENCE)) {
|
||||||
isSequence = true
|
isSequence = true
|
||||||
} else if (line == BEGIN_ALARM) {
|
} else if (line.trim() == BEGIN_ALARM) {
|
||||||
isNotificationDescription = true
|
isNotificationDescription = true
|
||||||
} else if (line == END_ALARM) {
|
} else if (line.trim() == END_ALARM) {
|
||||||
if (isProperReminderAction && curReminderTriggerMinutes != REMINDER_OFF) {
|
if (isProperReminderAction && curReminderTriggerMinutes != REMINDER_OFF) {
|
||||||
curReminderMinutes.add(curReminderTriggerMinutes)
|
curReminderMinutes.add(curReminderTriggerMinutes)
|
||||||
curReminderActions.add(curReminderTriggerAction)
|
curReminderActions.add(curReminderTriggerAction)
|
||||||
}
|
}
|
||||||
isNotificationDescription = false
|
isNotificationDescription = false
|
||||||
} else if (line == END_EVENT) {
|
} else if (line.trim() == END_EVENT) {
|
||||||
isParsingEvent = false
|
isParsingEvent = false
|
||||||
if (curStart != -1L && curEnd == -1L) {
|
if (curStart != -1L && curEnd == -1L) {
|
||||||
curEnd = curStart
|
curEnd = curStart
|
||||||
|
|
Loading…
Reference in New Issue