Generate filterByName from the remaining elements in the set

This commit is contained in:
PaulStets 2018-02-26 13:43:00 +02:00
parent a34a396aa7
commit b0b686b258

View file

@ -459,7 +459,8 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
String keyName = poiType.getKeyName().replace('_', ':').toLowerCase();
if (filters.contains(keyName)) {
selectedPoiAdditionals.add(keyName);
filterByName = filterByName.replaceAll(keyName, "");
filters.remove(keyName);
filterByName = filters.toString().replaceAll("[,\\[\\]]", "");
}
}
}