mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-09 21:44:41 +02:00
Fix:Closing playback first closes media progress syncer #268
This commit is contained in:
parent
dc9526beb3
commit
b51f65d2a4
1 changed files with 5 additions and 0 deletions
|
@ -670,6 +670,11 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
|
|||
|
||||
fun closePlayback() {
|
||||
Log.d(tag, "closePlayback")
|
||||
if (mediaProgressSyncer.listeningTimerRunning) {
|
||||
Log.i(tag, "About to close playback so stopping media progress syncer first")
|
||||
mediaProgressSyncer.stop()
|
||||
}
|
||||
|
||||
try {
|
||||
currentPlayer.stop()
|
||||
currentPlayer.clearMediaItems()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue