trim the line with alarm action at importing from .ics file

This commit is contained in:
tibbi
2021-03-11 22:51:56 +01:00
parent 74fd6de826
commit 43147df0aa

View File

@ -107,7 +107,7 @@ class IcsImporter(val activity: SimpleActivity) {
parseRepeatRule() parseRepeatRule()
} }
} else if (line.startsWith(ACTION)) { } else if (line.startsWith(ACTION)) {
val action = line.substring(ACTION.length) val action = line.substring(ACTION.length).trim()
isProperReminderAction = action == DISPLAY || action == EMAIL isProperReminderAction = action == DISPLAY || action == EMAIL
if (isProperReminderAction) { if (isProperReminderAction) {
curReminderTriggerAction = if (action == DISPLAY) REMINDER_NOTIFICATION else REMINDER_EMAIL curReminderTriggerAction = if (action == DISPLAY) REMINDER_NOTIFICATION else REMINDER_EMAIL