We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140171d commit 39018b7Copy full SHA for 39018b7
core/src/main/java/xyz/gianlu/librespot/player/tracks/PlaylistProvider.java
@@ -125,8 +125,10 @@ public void unshuffleTracks() {
125
public int getNextTrackIndex(boolean consume) {
126
int current = state.getPlayingTrackIndex();
127
if (state.getTrack(current).getQueued()) {
128
- if (consume) state.removeTrack(current);
129
- return current;
+ if (consume) {
+ state.removeTrack(current);
130
+ return current;
131
+ }
132
}
133
134
return current + 1;
0 commit comments