diff --git a/OsmAnd/src/com/osmand/activities/search/SearchPOIActivity.java b/OsmAnd/src/com/osmand/activities/search/SearchPOIActivity.java index d1d01dce5d..b20c739096 100644 --- a/OsmAnd/src/com/osmand/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/com/osmand/activities/search/SearchPOIActivity.java @@ -117,6 +117,10 @@ public class SearchPOIActivity extends ListActivity { } public void onListItemClick(ListView parent, View v, int position, long id) { + if(filter != null){ + OsmandSettings.setPoiFilterForMap(SearchPOIActivity.this, filter.getFilterId()); + OsmandSettings.setShowPoiOverMap(SearchPOIActivity.this, true); + } Amenity amenity = ((AmenityAdapter) getListAdapter()).getItem(position); OsmandSettings.setMapLocationToShow(this, amenity.getLocation().getLatitude(), amenity.getLocation().getLongitude(), getString(R.string.poi)+" : " + amenity.getSimpleFormat(OsmandSettings.usingEnglishNames(this))); //$NON-NLS-1$ Intent newIntent = new Intent(SearchPOIActivity.this, MapActivity.class);