Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Fix Boolean Mods filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopotediosi committed May 31, 2023
1 parent 07732ed commit 5e66981
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void onCreateMenu(@NonNull Menu menu, @NonNull MenuInflater menuInflater)
mBinding.filterEnabledStatusSpinner.setAdapter(new ArrayAdapter<>(requireContext(), android.R.layout.simple_spinner_dropdown_item, filterEnabledStatusSpinnerChoices));
mBinding.filterEnabledStatusSpinner.setOnItemClickListener((parent, view, position, id) -> {
flagsFilterEnabled = position == 0 || position == 1;
flagsFilterDisabled = position == 2;
flagsFilterDisabled = position == 0 || position == 2;
applyFlagsFilters();
});

Expand All @@ -181,7 +181,7 @@ public void onCreateMenu(@NonNull Menu menu, @NonNull MenuInflater menuInflater)
mBinding.filterChangedStatusSpinner.setAdapter(new ArrayAdapter<>(requireContext(), android.R.layout.simple_spinner_dropdown_item, filterChangedStatusSpinnerChoices));
mBinding.filterChangedStatusSpinner.setOnItemClickListener((parent, view, position, id) -> {
flagsFilterChanged = position == 0 || position == 1;
flagsFilterUnchanged = position == 2;
flagsFilterUnchanged = position == 0 || position == 2;
applyFlagsFilters();
});

Expand Down

0 comments on commit 5e66981

Please sign in to comment.