Fix out of bounds error.
We might call timeline.add() with an invalid position if we skipped a song due to being unfilled. Use 'added' instead of 'j' to calculate the queue position.
This commit is contained in:
parent
38cbce6d78
commit
c2ed38f0af
@ -775,7 +775,7 @@ public final class SongTimeline {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
timeline.add(start + j, song);
|
timeline.add(start + added, song);
|
||||||
added++;
|
added++;
|
||||||
|
|
||||||
if (jumpSong == null) {
|
if (jumpSong == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user