Fix #71: Move current track to to when shuffling

Signed-off-by: François-Xavier Thomas <fx.thomas@gmail.com>
This commit is contained in:
François-Xavier Thomas
2016-10-28 22:46:37 +02:00
parent 0777333d48
commit 65c4a72291
@@ -241,7 +241,8 @@ public class PlayQueue {
MediaFile currentFile = getCurrentFile();
Collections.shuffle(files);
if (currentFile != null) {
index = files.indexOf(currentFile);
Collections.swap(files, files.indexOf(currentFile), 0);
index = 0;
}
}