mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-22 11:44:33 +02:00
added check before setting state
This commit is contained in:
parent
695ab84940
commit
a3794a6a6a
1 changed files with 2 additions and 1 deletions
|
@ -366,7 +366,8 @@ class SleepTimerManager constructor(private val playerNotificationService: Playe
|
||||||
setSleepTimer(deviceSettings.sleepTimerLength, false)
|
setSleepTimer(deviceSettings.sleepTimerLength, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
isFirstAutoSleepTimer = true
|
if !isFirstAutoSleepTimer:
|
||||||
|
isFirstAutoSleepTimer = true
|
||||||
Log.d(tag, "Current hour $currentHour is NOT between ${deviceSettings.autoSleepTimerStartTime} and ${deviceSettings.autoSleepTimerEndTime}")
|
Log.d(tag, "Current hour $currentHour is NOT between ${deviceSettings.autoSleepTimerStartTime} and ${deviceSettings.autoSleepTimerEndTime}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue