mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 23:12:51 +00:00
Add an option to save the current group filter
This commit is contained in:
parent
51eade900c
commit
fc25312d12
6 changed files with 83 additions and 22 deletions
|
@ -119,6 +119,7 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
|||
_entryListView.setSortCategory(getPreferences().getCurrentSortCategory(), false);
|
||||
_entryListView.setViewMode(getPreferences().getCurrentViewMode());
|
||||
_entryListView.setIsCopyOnTapEnabled(getPreferences().isCopyOnTapEnabled());
|
||||
_entryListView.setPrefGroupFilter(getPreferences().getGroupFilter());
|
||||
|
||||
FloatingActionButton fab = findViewById(R.id.fab);
|
||||
fab.setOnClickListener(v -> {
|
||||
|
@ -723,6 +724,11 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
|||
@Override
|
||||
public void onListChange() { _fabScrollHelper.setVisible(true); }
|
||||
|
||||
@Override
|
||||
public void onSaveGroupFilter(List<String> groupFilter) {
|
||||
getPreferences().setGroupFilter(groupFilter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocked(boolean userInitiated) {
|
||||
if (_actionMode != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue