playback: fix wraparound with repeat once
This commit is contained in:
@@ -236,7 +236,7 @@ class ExoPlaybackStateHolder(
|
|||||||
// Replicate the old pseudo-circular queue behavior when no repeat option is implemented.
|
// 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
|
// 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.
|
// 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()
|
player.seekToNext()
|
||||||
if (!playbackSettings.rememberPause) {
|
if (!playbackSettings.rememberPause) {
|
||||||
player.play()
|
player.play()
|
||||||
|
|||||||
Reference in New Issue
Block a user