This commit is contained in:
Alexander Sytnyk 2017-07-27 13:32:36 +03:00
parent 64704cc61d
commit 490a2fb74e
2 changed files with 3 additions and 3 deletions

View file

@ -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());

View file

@ -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());
}
}
}