do not reschedule repeating alarms

This commit is contained in:
tibbi 2020-11-05 11:50:56 +01:00
parent edc7d4f942
commit 822044ed0f

View File

@ -230,7 +230,9 @@ fun Context.getNextAlarm(): String {
fun Context.rescheduleEnabledAlarms() {
dbHelper.getEnabledAlarms().forEach {
scheduleNextAlarm(it, false)
if (it.days != TODAY_BIT || it.timeInMinutes > getCurrentDayMinutes()) {
scheduleNextAlarm(it, false)
}
}
}