Skip to content

Commit 39018b7

Browse files
committed
Fixed #45
1 parent 140171d commit 39018b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/java/xyz/gianlu/librespot/player/tracks/PlaylistProvider.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ public void unshuffleTracks() {
125125
public int getNextTrackIndex(boolean consume) {
126126
int current = state.getPlayingTrackIndex();
127127
if (state.getTrack(current).getQueued()) {
128-
if (consume) state.removeTrack(current);
129-
return current;
128+
if (consume) {
129+
state.removeTrack(current);
130+
return current;
131+
}
130132
}
131133

132134
return current + 1;

0 commit comments

Comments
 (0)