alarm displayed within 12hours instead of 15min

This commit is contained in:
acress1 2024-06-14 09:45:35 +00:00 committed by MM2-0
parent 7f0fd7c082
commit cfe80ff3e5
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class AlarmPartProvider : PartProvider {
send(0)
} else {
time.collectLatest {
if (alarm > it + 15 * 60 * 1000) {
if (alarm > it + 12 * 60 * 60 * 1000) {
send(0)
} else {
send(60)

View File

@ -32,5 +32,5 @@ Base components, you can only enable one of them at a time:
Additionally, these conditional components are available:
- **Media**: show media controls, only when there are active media sessions
- **Alarm**: show the remaining time to the next alarm, only if there is an alarm scheduled to ring within the next 15 minutes
- **Alarm**: show the remaining time to the next alarm, only if there is an alarm scheduled to ring within the next 12 hours
- **Battery**: shows the current battery level and remaining charging time, only if battery is charging or battery level is less than 15%