mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-08 23:57:45 +00:00
Add SortCategory fixes and support for custom sorting
This commit is contained in:
parent
10b80442d0
commit
ecdadf5335
3 changed files with 15 additions and 8 deletions
|
@ -265,6 +265,13 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
|||
|
||||
private void setSortCategory(SortCategory sortCategory) {
|
||||
_sortCategory = sortCategory;
|
||||
|
||||
if(sortCategory == SortCategory.CUSTOM)
|
||||
{
|
||||
_entryListView.clearEntries();
|
||||
loadEntries();
|
||||
}
|
||||
|
||||
_entryListView.setSortCategory(sortCategory);
|
||||
}
|
||||
|
||||
|
@ -457,7 +464,7 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
|||
|
||||
case R.id.sort_custom:
|
||||
default:
|
||||
sortCategory = SortCategory.ACCOUNTREVERSED;
|
||||
sortCategory = SortCategory.CUSTOM;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue