Fix wikipedia layer / search'
This commit is contained in:
parent
d274649ec7
commit
0c4d3dfd13
1 changed files with 12 additions and 5 deletions
|
@ -834,12 +834,19 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
|
|||
if (!poiTypes.isRegisteredType(type)) {
|
||||
type = poiTypes.getOtherPoiCategory();
|
||||
}
|
||||
LinkedHashSet<String> acceptedTypesSet = acceptedTypes.get(type);
|
||||
if (acceptedTypesSet != null && acceptedTypesSet.contains(subtype)) {
|
||||
return true;
|
||||
if (acceptedTypes.containsKey(type)) {
|
||||
LinkedHashSet<String> acceptedTypesSet = acceptedTypes.get(type);
|
||||
if (acceptedTypesSet == null || acceptedTypesSet.contains(subtype)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
acceptedTypesSet = acceptedTypesOrigin.get(type);
|
||||
return acceptedTypesSet != null && acceptedTypesSet.contains(subtype);
|
||||
if (acceptedTypesOrigin.containsKey(type)) {
|
||||
LinkedHashSet<String> acceptedTypesSet = acceptedTypesOrigin.get(type);
|
||||
if (acceptedTypesSet == null || acceptedTypesSet.contains(subtype)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue