diff options
author | ByteHamster <info@bytehamster.com> | 2021-08-17 20:02:17 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-08-17 20:02:19 +0200 |
commit | fe9981d746f6c235b461238055ee9bd84567dec2 (patch) | |
tree | fe8e8840a27d6c0198333125ed5e1364351e319b /app | |
parent | 4772959ebe018980c8eaa67ede75ad5a2d764ae3 (diff) | |
download | AntennaPod-fe9981d746f6c235b461238055ee9bd84567dec2.zip |
Fix filter dialog crashing if someone has a non-supported filter value set
No idea how someone could end up with that invalid value but it was
reported by a user.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java index a38ca6b71..593b055f6 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java @@ -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); + } } } |