This commit is contained in:
Alexander Sytnyk 2017-07-27 13:32:36 +03:00
parent 728c53cc69
commit f7f0b98b32
2 changed files with 3 additions and 3 deletions

View file

@ -194,7 +194,7 @@ public class PoiFiltersHelper {
} }
public List<PoiUIFilter> getTopDefinedPoiFilters() { public List<PoiUIFilter> getTopDefinedPoiFilters() {
// if (cacheTopStandardFilters == null) { if (cacheTopStandardFilters == null) {
List<PoiUIFilter> top = new ArrayList<PoiUIFilter>(); List<PoiUIFilter> top = new ArrayList<PoiUIFilter>();
// user defined // user defined
top.addAll(getUserDefinedPoiFilters()); top.addAll(getUserDefinedPoiFilters());
@ -209,7 +209,7 @@ public class PoiFiltersHelper {
} }
Collections.sort(top); Collections.sort(top);
cacheTopStandardFilters = top; cacheTopStandardFilters = top;
// } }
List<PoiUIFilter> result = new ArrayList<PoiUIFilter>(); List<PoiUIFilter> result = new ArrayList<PoiUIFilter>();
result.addAll(cacheTopStandardFilters); result.addAll(cacheTopStandardFilters);
result.add(getShowAllPOIFilter()); result.add(getShowAllPOIFilter());

View file

@ -585,7 +585,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
acceptedTypes.put(category, null); acceptedTypes.put(category, null);
} }
} else { } else {
acceptedTypes.put(category, types.get(category)); acceptedTypes.put(category, (LinkedHashSet<String>) types.get(category).clone());
} }
} }
} }