Merge pull request #1611 from alexbakker/update-divider-decor

Update divider decoration when filter/sort changes
master
Michael Schättgen 3 days ago committed by GitHub
commit 19fe7bd4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -220,8 +220,8 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
_entryListView.setPauseFocused(_prefs.isPauseFocusedEnabled());
_entryListView.setTapToReveal(_prefs.isTapToRevealEnabled());
_entryListView.setTapToRevealTime(_prefs.getTapToRevealTime());
_entryListView.setSortCategory(_prefs.getCurrentSortCategory(), false);
_entryListView.setViewMode(_prefs.getCurrentViewMode());
_entryListView.setSortCategory(_prefs.getCurrentSortCategory(), false);
_entryListView.setCopyBehavior(_prefs.getCopyBehavior());
_entryListView.setSearchBehaviorMask(_prefs.getSearchBehaviorMask());
_prefGroupFilter = _prefs.getGroupFilter();

@ -200,6 +200,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
_adapter.setGroupFilter(groups);
_touchCallback.setIsLongPressDragEnabled(_adapter.isDragAndDropAllowed());
updateEmptyState();
updateDividerDecoration();
}
public void setIsLongPressDragEnabled(boolean enabled) {
@ -232,6 +233,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
public void setSortCategory(SortCategory sortCategory, boolean apply) {
_adapter.setSortCategory(sortCategory, apply);
_touchCallback.setIsLongPressDragEnabled(_adapter.isDragAndDropAllowed());
updateDividerDecoration();
}
public void setUsageCounts(Map<UUID, Integer> usageCounts) {
@ -253,8 +255,8 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
public void setSearchFilter(String search) {
_adapter.setSearchFilter(search);
_touchCallback.setIsLongPressDragEnabled(_adapter.isDragAndDropAllowed());
updateEmptyState();
updateDividerDecoration();
}
public void setSelectedEntry(VaultEntry entry) {

Loading…
Cancel
Save