From f7f0b98b32a81863317194af7e4f8a03c73a10df Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Thu, 27 Jul 2017 13:32:36 +0300 Subject: [PATCH] Fix #4208 --- OsmAnd/src/net/osmand/plus/poi/PoiFiltersHelper.java | 4 ++-- OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiFiltersHelper.java b/OsmAnd/src/net/osmand/plus/poi/PoiFiltersHelper.java index 4ca7d456eb..d0568c60d2 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiFiltersHelper.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiFiltersHelper.java @@ -194,7 +194,7 @@ public class PoiFiltersHelper { } public List getTopDefinedPoiFilters() { -// if (cacheTopStandardFilters == null) { + if (cacheTopStandardFilters == null) { List top = new ArrayList(); // user defined top.addAll(getUserDefinedPoiFilters()); @@ -209,7 +209,7 @@ public class PoiFiltersHelper { } Collections.sort(top); cacheTopStandardFilters = top; -// } + } List result = new ArrayList(); result.addAll(cacheTopStandardFilters); result.add(getShowAllPOIFilter()); diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java index b174be24a9..b9431ef05d 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java @@ -585,7 +585,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable acceptedTypes.put(category, null); } } else { - acceptedTypes.put(category, types.get(category)); + acceptedTypes.put(category, (LinkedHashSet) types.get(category).clone()); } } }