mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] SizedFile Collection shuffle
This commit is contained in:
parent
2def9c20d9
commit
2058e3f38b
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ public List<List<SizedFile>> sortFiles(List<SizedFile> files, int threads) {
|
|||
result.get(minIndex).add(file);
|
||||
sizes[minIndex] += file.size;
|
||||
}
|
||||
for(List<SizedFile> l : result) {
|
||||
Collections.shuffle(l);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue