Fix logic
This commit is contained in:
parent
cf6bcde867
commit
2bcf634962
1 changed files with 4 additions and 2 deletions
|
@ -578,8 +578,10 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
|
||||||
|
|
||||||
private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) {
|
private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) {
|
||||||
for (PoiCategory category : types.keySet()) {
|
for (PoiCategory category : types.keySet()) {
|
||||||
|
if (acceptedTypes.containsKey(category)) {
|
||||||
if (acceptedTypes.get(category) != null) {
|
if (acceptedTypes.get(category) != null) {
|
||||||
acceptedTypes.get(category).addAll(types.get(category));
|
acceptedTypes.get(category).addAll(types.get(category));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
acceptedTypes.put(category, types.get(category));
|
acceptedTypes.put(category, types.get(category));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue