handle all reminder periods properly

This commit is contained in:
tibbi 2017-03-05 21:22:24 +01:00
parent a647a52c31
commit 19bc2b627f
1 changed files with 1 additions and 1 deletions

View File

@ -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)