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
1 changed files with 1 additions and 1 deletions

View File

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