Fixed clear button clearing all values
This commit is contained in:
parent
03f2198ed5
commit
655c7a9884
|
@ -62,11 +62,11 @@ public abstract class FilterDialog {
|
|||
}
|
||||
RecursiveRadioGroup group = (RecursiveRadioGroup) layout.getChildAt(i);
|
||||
if (group.getCheckedButton() != null) {
|
||||
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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue