Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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

Merged
merged 2 commits into from
May 5, 2020

Conversation

keianhzo
Copy link
Contributor

@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.

keianhzo added 2 commits May 4, 2020 23:23
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants