properly show notifications at events repeating x times

This commit is contained in:
tibbi 2017-05-05 21:08:50 +02:00
parent fbcb380cc0
commit e9901c851f
1 changed files with 2 additions and 1 deletions

View File

@ -84,8 +84,9 @@ fun Context.scheduleNextEventReminder(event: Event) {
return
}
if (event.repeatLimit == 0 || event.repeatLimit > nextTS)
if (event.repeatLimit == 0 || event.repeatLimit > nextTS || event.repeatLimit < 0) {
scheduleEventIn(nextTS, event)
}
}
private fun isOccurrenceIgnored(event: Event, startTS: Int, reminderSeconds: Int): Boolean {