LeoKlaus / plappa

An Audiobook client for Jellyfin and AudioBookShelf, written in Swift/SwiftUI.
https://plappa.me
237 stars 1 forks source link

[BUG] Sleep Timer is not reset after resume #157

Closed uptivuptiz closed 4 months ago

uptivuptiz commented 4 months ago

Describe the bug The Sleep Timer does not reset when resuming playback, unless the play/pause button in the app is explicitly used.

To Reproduce Steps to reproduce the behavior:

  1. Enable 'Restart Sleep Timer When Resuming' under 'Change Sleep Timer' in Settings.
  2. Set a sleep time (ex. 5 min) in the player. Then start playback and let it run out.
  3. Use the play/pause button in iOS Control Center or on your headset.
  4. Playback resumes, but the Sleep Timer is not Restarted.

Expected behavior Sleep Timer is set to 5 minutes. When it runs out, it should reset to 5 minutes after Play/Pause is pressed via iOS Control Center or the button on a headset. Just like how it works in the Audible app.

Screenshots N/A

Logs N/A

Environment(please complete the following information):

Additional context N/A

LeoKlaus commented 4 months ago

Thank you for reporting this! I've implemented a fix for this. It will release with the next TestFlight and AppStore releases.