mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Fix for parsing .ics file when the key BYMONTHDAY is present in the .ics file.
This commit is contained in:
@@ -60,7 +60,10 @@ class Parser {
|
||||
} else if (repeatInterval.isXMonthlyRepetition() || repeatInterval.isXYearlyRepetition()) {
|
||||
repeatRule = if (value.startsWith("-1")) REPEAT_ORDER_WEEKDAY_USE_LAST else REPEAT_ORDER_WEEKDAY
|
||||
}
|
||||
} else if (key == BYMONTHDAY && value.toInt() == -1) {
|
||||
} else if (key == BYMONTHDAY) {
|
||||
val byMonthDayValueArray = value.split(",")
|
||||
val intFlag = byMonthDayValueArray.find { it.toInt() == -1 }
|
||||
if (intFlag == null)
|
||||
repeatRule = REPEAT_LAST_DAY
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user