small bugfix
git-svn-id: https://osmand.googlecode.com/svn/trunk@285 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
dd825737b4
commit
22353589b5
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ public class SearchPOIActivity extends ListActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onListItemClick(ListView parent, View v, int position, long id) {
|
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);
|
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$
|
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);
|
Intent newIntent = new Intent(SearchPOIActivity.this, MapActivity.class);
|
||||||
|
|
Loading…
Reference in a new issue