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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user