Fixed an ArrayIndexOutOfBoundsException.
This commit is contained in:
parent
14fcf61c94
commit
dfb011a93d
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import java.util.List;
|
|||
public class ShuffleHelper {
|
||||
|
||||
public static void makeShuffleList(@NonNull List<Song> listToShuffle, final int current) {
|
||||
if (listToShuffle.isEmpty()) return;
|
||||
if (current >= 0) {
|
||||
Song song = listToShuffle.remove(current);
|
||||
Collections.shuffle(listToShuffle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue