Add support for reversed sorting methods

This commit is contained in:
Michael Schättgen 2019-03-31 20:12:25 +02:00
parent b8939b504e
commit 07aac1e6a3

View file

@ -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();
}
}