mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 14:47:21 +02:00
fix: iOS chapter sleep timer issues
This commit is contained in:
@@ -194,11 +194,6 @@ class AudioPlayer: NSObject {
|
||||
if self.isSleepTimerSet() {
|
||||
// Update the UI
|
||||
NotificationCenter.default.post(name: NSNotification.Name(PlayerEvents.sleepSet.rawValue), object: nil)
|
||||
|
||||
// Handle a sitation where the user skips past the chapter end
|
||||
if self.isChapterSleepTimerBeforeTime(currentTime) {
|
||||
self.removeSleepTimer()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -352,6 +347,9 @@ class AudioPlayer: NSObject {
|
||||
|
||||
// Update the progress
|
||||
self.updateNowPlaying()
|
||||
|
||||
// Handle a chapter sleep timer that may now be invalid
|
||||
self.handleTrackChangeForChapterSleepTimer()
|
||||
}
|
||||
|
||||
public func pause() {
|
||||
|
||||
Reference in New Issue
Block a user