mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
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:
commit
6ab14c53a3
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user