playback: fix wraparound with repeat once

This commit is contained in:
Alexander Capehart 2024-04-10 19:48:28 -06:00
parent bd890880a3
commit 1f9f62b0da
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -236,7 +236,7 @@ class ExoPlaybackStateHolder(
// Replicate the old pseudo-circular queue behavior when no repeat option is implemented.
// Basically, you can't skip back and wrap around the queue, but you can skip forward and
// wrap around the queue, albeit playback will be paused.
if (player.repeatMode != Player.REPEAT_MODE_OFF || player.hasNextMediaItem()) {
if (player.repeatMode == Player.REPEAT_MODE_ALL || player.hasNextMediaItem()) {
player.seekToNext()
if (!playbackSettings.rememberPause) {
player.play()