mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-30 08:28:34 +02:00
added check before setting state
This commit is contained in:
@@ -366,7 +366,8 @@ class SleepTimerManager constructor(private val playerNotificationService: Playe
|
||||
setSleepTimer(deviceSettings.sleepTimerLength, false)
|
||||
}
|
||||
} else {
|
||||
isFirstAutoSleepTimer = true
|
||||
if !isFirstAutoSleepTimer:
|
||||
isFirstAutoSleepTimer = true
|
||||
Log.d(tag, "Current hour $currentHour is NOT between ${deviceSettings.autoSleepTimerStartTime} and ${deviceSettings.autoSleepTimerEndTime}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user