Merge pull request #5349 from ByteHamster/fix-crash-filter

Fix filter dialog crashing if someone has a non-supported filter value set
This commit is contained in:
ByteHamster 2021-08-17 20:24:08 +02:00 committed by GitHub
commit 6ab14c53a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,10 @@ public abstract class FilterDialog {
for (String filterId : filterValues) {
if (!TextUtils.isEmpty(filterId)) {
((RadioButton) layout.findViewWithTag(filterId)).setChecked(true);
RadioButton button = layout.findViewWithTag(filterId);
if (button != null) {
button.setChecked(true);
}
}
}