Fixed an ArrayIndexOutOfBoundsException.

This commit is contained in:
Karim Abou Zeid 2016-05-30 00:22:29 +02:00
commit dfb011a93d

View file

@ -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);