Fix geo intent

This commit is contained in:
Victor Shcherb 2017-04-18 12:13:22 +03:00
parent 653f8be03e
commit d76cd1e2fa

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);
} }