mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-03 22:30:31 +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);
|
result.get(minIndex).add(file);
|
||||||
sizes[minIndex] += file.size;
|
sizes[minIndex] += file.size;
|
||||||
}
|
}
|
||||||
|
for(List<SizedFile> l : result) {
|
||||||
|
Collections.shuffle(l);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue