mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 14:02:49 +00:00
Add support for reversed sorting methods
This commit is contained in:
parent
b8939b504e
commit
07aac1e6a3
1 changed files with 5 additions and 0 deletions
|
@ -160,6 +160,11 @@ public class EntryAdapter extends RecyclerView.Adapter<EntryHolder> implements I
|
|||
_sortCategory = sortCategory;
|
||||
Collections.sort(_shownEntries, new IssuerNameComparator());
|
||||
|
||||
if(sortCategory == SortCategory.ACCOUNTREVERSED || sortCategory == SortCategory.ISSUERREVERSED)
|
||||
{
|
||||
Collections.reverse(_shownEntries);
|
||||
}
|
||||
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue