Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3321 Fixes #3320 Fixes #3317 Downloads list improvements #3326

Merged
merged 2 commits into from
May 5, 2020

Conversation

keianhzo
Copy link
Collaborator

@keianhzo keianhzo commented May 4, 2020

Fixes #3321 Fixes #3320 Fixes #3317 Fixes the issues with sorting when there are items with the same size and name. Also fixes sorting restoration upon restart and scrolling when sorting is changed.

Reset scroll position after changing sorting
@keianhzo keianhzo self-assigned this May 4, 2020
@keianhzo keianhzo requested a review from bluemarvin May 4, 2020 21:59
Comment on lines +360 to +369
private Comparator<Download> mAZFileNameComparator = (o1, o2) -> {
int nameDiff = o1.getFilename().compareTo(o2.getFilename());
if (nameDiff == 0) {
return mDownloadIdComparator.compare(o1, o2);

} else {
return nameDiff;
}
};
private Comparator<Download> mZAFilenameComparator = (o1, o2) -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: mAZFileNameComparator vs mZAFilenameComparator Name is only capitalized in one of the names. Can address in a follow up.

@bluemarvin bluemarvin merged commit d0f94b5 into master May 5, 2020
@bluemarvin bluemarvin deleted the v10/downloads_sroting branch May 5, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants