From 655c7a9884504206747b2789f0c10cdf72ac3608 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 13 Jul 2020 12:10:00 +0200 Subject: [PATCH] Fixed clear button clearing all values --- .../java/de/danoeh/antennapod/dialog/FilterDialog.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 a5d024545..6e50be917 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/FilterDialog.java @@ -62,12 +62,12 @@ public abstract class FilterDialog { } RecursiveRadioGroup group = (RecursiveRadioGroup) layout.getChildAt(i); if (group.getCheckedButton() != null) { - filterValues.add((String) group.getCheckedButton().getTag()); + String tag = (String) group.getCheckedButton().getTag(); + if (tag != null) { // Clear buttons use no tag + filterValues.add((String) group.getCheckedButton().getTag()); + } } } - if (filterValues.contains(null)) { - filterValues.clear(); - } updateFilter(filterValues); });