Merge pull request #6726 from osmandapp/Fix_6322

Fix 6322
This commit is contained in:
Alexey 2019-03-21 17:42:07 +03:00 committed by GitHub
commit 980d6ed9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,13 +137,13 @@ 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);
}
MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this);
GeoIntentActivity.this.finish();
} catch (Exception e) {
e.printStackTrace();
}
@ -151,8 +151,6 @@ public class GeoIntentActivity extends OsmandListActivity {
}
@Override
protected void onStop() {
dismiss();