mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
handle all reminder periods properly
This commit is contained in:
@@ -54,7 +54,7 @@ fun Context.scheduleNextEventReminder(event: Event) {
|
||||
reminderSeconds.forEach {
|
||||
var startTS = event.startTS - it
|
||||
if (event.repeatInterval == DAY || event.repeatInterval == WEEK || event.repeatInterval == BIWEEK) {
|
||||
while (startTS < now || event.ignoreEventOccurrences.contains(startTS)) {
|
||||
while (startTS < now || event.ignoreEventOccurrences.contains(startTS + it)) {
|
||||
startTS += event.repeatInterval
|
||||
}
|
||||
nextTS = Math.min(nextTS, startTS)
|
||||
|
Reference in New Issue
Block a user