summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh
diff options
context:
space:
mode:
authorbws9000 <armorsoft@gmail.com>2020-07-07 10:55:56 -0400
committerbws9000 <armorsoft@gmail.com>2020-07-07 10:55:56 -0400
commit2ce23f6868a1205996955f7cbbbb004246ebf9b1 (patch)
treeb1c29fd55ac650dfee405af7dac1492b0b017cff /app/src/main/java/de/danoeh
parent06f36d12d8ac3e9f00e39f47eda4dfd48dd5e69a (diff)
downloadAntennaPod-2ce23f6868a1205996955f7cbbbb004246ebf9b1.zip
Redesign filter dialog
Diffstat (limited to 'app/src/main/java/de/danoeh')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java7
1 files changed, 4 insertions, 3 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 82bdfaafe..a5d024545 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java
@@ -50,9 +50,7 @@ public abstract class FilterDialog {
for (String filterId : filterValues) {
if (!TextUtils.isEmpty(filterId)) {
- if (layout.findViewWithTag(filterId) != null) {
- ((RadioButton) layout.findViewWithTag(filterId)).setChecked(true);
- }
+ ((RadioButton) layout.findViewWithTag(filterId)).setChecked(true);
}
}
@@ -67,6 +65,9 @@ public abstract class FilterDialog {
filterValues.add((String) group.getCheckedButton().getTag());
}
}
+ if (filterValues.contains(null)) {
+ filterValues.clear();
+ }
updateFilter(filterValues);
});