From 22353589b565f0455c1692ca3ea1a8f00e7bec27 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 5 Jul 2010 11:02:51 +0000 Subject: [PATCH] small bugfix git-svn-id: https://osmand.googlecode.com/svn/trunk@285 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8 --- .../src/com/osmand/activities/search/SearchPOIActivity.java | 4 ++++ 1 file changed, 4 insertions(+) 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);