From c4d4d3d4f71a9fccf1eb6afd56291687beb4040b Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Thu, 7 Dec 2017 11:28:34 +0200 Subject: [PATCH] Fix #4233 --- .../osmand/plus/activities/search/GeoIntentActivity.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); }