properly show notifications at events repeating x times
This commit is contained in:
parent
fbcb380cc0
commit
e9901c851f
|
@ -84,8 +84,9 @@ fun Context.scheduleNextEventReminder(event: Event) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.repeatLimit == 0 || event.repeatLimit > nextTS)
|
if (event.repeatLimit == 0 || event.repeatLimit > nextTS || event.repeatLimit < 0) {
|
||||||
scheduleEventIn(nextTS, event)
|
scheduleEventIn(nextTS, event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun isOccurrenceIgnored(event: Event, startTS: Int, reminderSeconds: Int): Boolean {
|
private fun isOccurrenceIgnored(event: Event, startTS: Int, reminderSeconds: Int): Boolean {
|
||||||
|
|
Loading…
Reference in New Issue