mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-01-06 13:37:21 +01:00
do not reschedule repeating alarms
This commit is contained in:
parent
edc7d4f942
commit
822044ed0f
@ -230,8 +230,10 @@ fun Context.getNextAlarm(): String {
|
|||||||
|
|
||||||
fun Context.rescheduleEnabledAlarms() {
|
fun Context.rescheduleEnabledAlarms() {
|
||||||
dbHelper.getEnabledAlarms().forEach {
|
dbHelper.getEnabledAlarms().forEach {
|
||||||
|
if (it.days != TODAY_BIT || it.timeInMinutes > getCurrentDayMinutes()) {
|
||||||
scheduleNextAlarm(it, false)
|
scheduleNextAlarm(it, false)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.isScreenOn() = (getSystemService(Context.POWER_SERVICE) as PowerManager).isScreenOn
|
fun Context.isScreenOn() = (getSystemService(Context.POWER_SERVICE) as PowerManager).isScreenOn
|
||||||
|
Loading…
Reference in New Issue
Block a user