properly show the event day at the reminder

This commit is contained in:
tibbi 2018-05-25 23:37:55 +02:00
parent 888a0bcd99
commit 1489b70f41
1 changed files with 2 additions and 2 deletions

View File

@ -154,10 +154,10 @@ fun Context.notifyEvent(originalEvent: Event) {
if (event.repeatInterval != 0 && event.startTS - event.reminder1Minutes * 60 < currentSeconds) {
val events = dbHelper.getRepeatableEventsFor(currentSeconds - DAY_SECONDS, currentSeconds + YEAR_SECONDS, event.id)
for (currEvent in events) {
event = currEvent
if (event.startTS - event.reminder1Minutes * 60 > currentSeconds) {
if (currEvent.startTS - currEvent.reminder1Minutes * 60 > currentSeconds) {
break
}
event = currEvent
}
}