diff --git a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java index 71dc479bc8..9eb8591733 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/GeoIntentActivity.java @@ -138,11 +138,12 @@ public class GeoIntentActivity extends OsmandListActivity { settings.setMapLocationToShow(p.getLatitude(), p.getLongitude(), settings.getLastKnownMapZoom(), pd); //$NON-NLS-1$ MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this); + } else { + Uri uri = intent.getData(); + String searchString = p != null && p.isGeoAddress() ? p.getQuery() : uri.toString(); + settings.setSearchRequestToShow(searchString); + MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this); } - Uri uri = intent.getData(); - String searchString = p != null && p.isGeoAddress() ? p.getQuery() : uri.toString(); - settings.setSearchRequestToShow(searchString); - MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this); } catch (Exception e) { e.printStackTrace(); }