From 0b07825fd340063296602687d510e54633ff12ce Mon Sep 17 00:00:00 2001 From: saunaklogan Date: Mon, 4 May 2020 22:18:12 +0530 Subject: [PATCH] Fix for parsing .ics file when the key BYMONTHDAY is present in the .ics file. Earlier commit had a wrong check which has been updated. --- .../kotlin/com/simplemobiletools/calendar/pro/helpers/Parser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/Parser.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/Parser.kt index f868d5e50..e4ee0a0e3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/Parser.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/Parser.kt @@ -63,7 +63,7 @@ class Parser { } else if (key == BYMONTHDAY) { val byMonthDayValueArray = value.split(",") val intFlag = byMonthDayValueArray.find { it.toInt() == -1 } - if (intFlag == null) + if (intFlag != null) repeatRule = REPEAT_LAST_DAY } }