diff --git a/android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt b/android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt index 261c0b7f..14985242 100644 --- a/android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt +++ b/android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt @@ -366,8 +366,9 @@ class SleepTimerManager constructor(private val playerNotificationService: Playe setSleepTimer(deviceSettings.sleepTimerLength, false) } } else { - if !isFirstAutoSleepTimer: + if (!isFirstAutoSleepTimer) { isFirstAutoSleepTimer = true + } Log.d(tag, "Current hour $currentHour is NOT between ${deviceSettings.autoSleepTimerStartTime} and ${deviceSettings.autoSleepTimerEndTime}") } }