[Bug] Android cancel sleep timer does not reset volume #466

Closed
opened 2026-04-24 23:24:40 +02:00 by adam · 1 comment
Owner

Originally created by @advplyr on GitHub (Feb 25, 2023).

          > Android: For me when I used the sleep timer this morning, I paused with around 8s left then I canceled the timer. When i went to play it again the volume was still low. I checked the volume on my device and it was fine. I had to close the app and reopen.

@MrBearedJoe I wasn't able to reproduce this. Let me know if this is something you can reproduce.

I can reproduce this (on Android, using 0.9.62-beta). Neither resetting the timer nor canceling it restores the volume during the last minute of the sleep countdown. But instead of having to restart the app like Joe reported, I just have to pause and resume the playback (which also resets the timer). Adjusting the timer also restores the volume. After poking at the code a bit, this looks like a case of missing calls to setVolume() in SleepTimerManager.kt. I'm curious how you're not experiencing the issue yourself.

Originally posted by @calebj in https://github.com/advplyr/audiobookshelf-app/issues/545#issuecomment-1444918453

Originally created by @advplyr on GitHub (Feb 25, 2023). > Android: For me when I used the sleep timer this morning, I paused with around 8s left then I canceled the timer. When i went to play it again the volume was still low. I checked the volume on my device and it was fine. I had to close the app and reopen. > @MrBearedJoe I wasn't able to reproduce this. Let me know if this is something you can reproduce. I can reproduce this (on Android, using 0.9.62-beta). Neither resetting the timer nor canceling it restores the volume during the last minute of the sleep countdown. But instead of having to restart the app like Joe reported, I just have to pause and resume the playback (which also resets the timer). Adjusting the timer also restores the volume. After poking at the code a bit, this looks like a case of missing calls to `setVolume()` in SleepTimerManager.kt. I'm curious how you're not experiencing the issue yourself. _Originally posted by @calebj in https://github.com/advplyr/audiobookshelf-app/issues/545#issuecomment-1444918453_
adam added the bug label 2026-04-24 23:24:40 +02:00
adam closed this issue 2026-04-24 23:24:41 +02:00
Author
Owner

@advplyr commented on GitHub (Mar 10, 2023):

Fixed in v0.9.63-beta

@advplyr commented on GitHub (Mar 10, 2023): Fixed in [v0.9.63-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.9.63-beta)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#466