mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-07 12:28:50 +02:00
Merge pull request #887 from atoghyani/ios-sleep-timer-reset-after-resume
Adding a check so chapter sleep timer is set after resume only when a…
This commit is contained in:
@@ -116,8 +116,9 @@ extension AudioPlayer {
|
||||
// MARK: - Internal helpers
|
||||
|
||||
internal func handleTrackChangeForChapterSleepTimer() {
|
||||
// If no sleep timer is set, this does nothing
|
||||
self.setChapterSleepTimer(stopAt: self.sleepTimeChapterStopAt)
|
||||
if self.isChapterSleepTimerSet() {
|
||||
self.setChapterSleepTimer(stopAt: self.sleepTimeChapterStopAt)
|
||||
}
|
||||
}
|
||||
|
||||
private func decrementSleepTimerIfRunning() {
|
||||
|
||||
Reference in New Issue
Block a user