mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-09-20 14:44:00 +00:00
fix: update pendingNextIndex when playing a track from the playlist
This commit is contained in:
parent
19c1d0ec35
commit
d95e1aad70
@ -490,6 +490,7 @@ actual class AudioPlayer actual constructor(context: Any) : AudioPlayerInterface
|
|||||||
if (disposed || index !in currentPlaylist.indices) return
|
if (disposed || index !in currentPlaylist.indices) return
|
||||||
currentIndex = index
|
currentIndex = index
|
||||||
_currentMediaItem.tryEmit(currentPlaylist[index])
|
_currentMediaItem.tryEmit(currentPlaylist[index])
|
||||||
|
pendingNextIndex = index
|
||||||
mediaListPlayer.controls().play(index)
|
mediaListPlayer.controls().play(index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user