Fix #4208
This commit is contained in:
parent
728c53cc69
commit
f7f0b98b32
2 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ public class PoiFiltersHelper {
|
|||
}
|
||||
|
||||
public List<PoiUIFilter> getTopDefinedPoiFilters() {
|
||||
// if (cacheTopStandardFilters == null) {
|
||||
if (cacheTopStandardFilters == null) {
|
||||
List<PoiUIFilter> top = new ArrayList<PoiUIFilter>();
|
||||
// user defined
|
||||
top.addAll(getUserDefinedPoiFilters());
|
||||
|
@ -209,7 +209,7 @@ public class PoiFiltersHelper {
|
|||
}
|
||||
Collections.sort(top);
|
||||
cacheTopStandardFilters = top;
|
||||
// }
|
||||
}
|
||||
List<PoiUIFilter> result = new ArrayList<PoiUIFilter>();
|
||||
result.addAll(cacheTopStandardFilters);
|
||||
result.add(getShowAllPOIFilter());
|
||||
|
|
|
@ -585,7 +585,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
|
|||
acceptedTypes.put(category, null);
|
||||
}
|
||||
} else {
|
||||
acceptedTypes.put(category, types.get(category));
|
||||
acceptedTypes.put(category, (LinkedHashSet<String>) types.get(category).clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue