Make group chips checked when selected

This brings us in line with upstream Material UI guidelines - apparently
before we were showing "choice chips" and with this change we show
"filter chips".

See https://material.io/components/chips/android#filter-chip.
This commit is contained in:
AJ Jordan 2021-10-19 23:01:27 -07:00
parent 80960e23fc
commit a302f3daac

View file

@ -416,7 +416,7 @@ public class EntryListView extends Fragment implements EntryAdapter.Listener {
chip.setText(group);
chip.setCheckable(true);
chip.setChecked(_groupFilter != null && _groupFilter.contains(group));
chip.setCheckedIconVisible(false);
chip.setCheckedIconVisible(true);
chip.setOnCheckedChangeListener((group1, checkedId) -> {
List<String> groupFilter = getGroupFilter(chipGroup);
setGroupFilter(groupFilter, true);