Fix:Android download book play times in history

This commit is contained in:
advplyr 2023-02-04 10:32:36 -06:00
parent a12eb7efdf
commit 944aa5de66

View file

@ -709,7 +709,9 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
// Should already be playing
currentPlayer.volume = 1F // Volume on sleep timer might have decreased this
currentPlaybackSession?.let { mediaProgressSyncer.play(it) }
mediaProgressSyncer.currentPlaybackSession?.let { playbackSession ->
mediaProgressSyncer.play(playbackSession)
}
clientEventEmitter?.onPlayingUpdate(true)
}
}
@ -739,7 +741,10 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
}
currentPlayer.volume = 1F // Volume on sleep timer might have decreased this
mediaProgressSyncer.play(it)
mediaProgressSyncer.currentPlaybackSession?.let { playbackSession ->
mediaProgressSyncer.play(playbackSession)
}
clientEventEmitter?.onPlayingUpdate(true)
}
}