From cea6a629b59b000146fa7ba330f8dcfb962c387b Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 19 Feb 2015 00:24:01 +0100 Subject: [PATCH] Fix icons --- OsmAnd/src/net/osmand/plus/poi/PoiLegacyFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiLegacyFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiLegacyFilter.java index edf7cde3d9..cc9fc31704 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiLegacyFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiLegacyFilter.java @@ -48,10 +48,10 @@ public class PoiLegacyFilter { public PoiLegacyFilter(PoiCategory type, OsmandApplication application){ this.app = application; isStandardFilter = true; - filterId = STD_PREFIX + type; + filterId = STD_PREFIX + (type == null? null: type.getName()); poiTypes = application.getPoiTypes(); name = type == null ? application.getString(R.string.poi_filter_closest_poi) : type.getTranslation(); //$NON-NLS-1$ - if(type == null){ + if (type == null) { initSearchAll(); } else { acceptedTypes.put(type, null);