fix #1046, adding an extra check to avoid invalid reminders

This commit is contained in:
tibbi 2019-12-29 17:46:29 +01:00
parent 9535c5ec5d
commit d9fe64d584
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class NotificationReceiver : BroadcastReceiver() {
context.updateListWidget() context.updateListWidget()
val event = context.eventsDB.getEventWithId(id) val event = context.eventsDB.getEventWithId(id)
if (event == null || event.getReminders().none { it.type == REMINDER_NOTIFICATION }) { if (event == null || event.getReminders().none { it.type == REMINDER_NOTIFICATION } || event.repetitionExceptions.contains(Formatter.getTodayCode())) {
return return
} }