Fix geo intent

This commit is contained in:
Victor Shcherb 2017-04-18 12:13:22 +03:00
parent 8e218323dc
commit 7d1fc07e2e

View file

@ -153,7 +153,7 @@ public class GeoIntentActivity extends OsmandListActivity {
MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this); MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this);
} }
Uri uri = intent.getData(); Uri uri = intent.getData();
String searchString = p != null && p.isGeoAddress() ? p.getLabel() : uri.toString(); String searchString = p != null && p.isGeoAddress() ? p.getQuery() : uri.toString();
settings.setSearchRequestToShow(searchString); settings.setSearchRequestToShow(searchString);
MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this); MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this);
} }