mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
tweaking a repetition rule check
This commit is contained in:
@ -61,10 +61,9 @@ class Parser {
|
|||||||
repeatRule = if (value.startsWith("-1")) REPEAT_ORDER_WEEKDAY_USE_LAST else REPEAT_ORDER_WEEKDAY
|
repeatRule = if (value.startsWith("-1")) REPEAT_ORDER_WEEKDAY_USE_LAST else REPEAT_ORDER_WEEKDAY
|
||||||
}
|
}
|
||||||
} else if (key == BYMONTHDAY) {
|
} else if (key == BYMONTHDAY) {
|
||||||
val byMonthDayValueArray = value.split(",")
|
if (value.split(",").any { it.toInt() == -1 }) {
|
||||||
val intFlag = byMonthDayValueArray.find { it.toInt() == -1 }
|
|
||||||
if (intFlag != null)
|
|
||||||
repeatRule = REPEAT_LAST_DAY
|
repeatRule = REPEAT_LAST_DAY
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return EventRepetition(repeatInterval, repeatRule, repeatLimit)
|
return EventRepetition(repeatInterval, repeatRule, repeatLimit)
|
||||||
|
Reference in New Issue
Block a user