Remove unnecessary changes
This commit is contained in:
parent
9ec1b8c239
commit
84495e11f2
1 changed files with 2 additions and 7 deletions
|
@ -137,13 +137,13 @@ public class GeoIntentActivity extends OsmandListActivity {
|
||||||
}
|
}
|
||||||
settings.setMapLocationToShow(p.getLatitude(), p.getLongitude(),
|
settings.setMapLocationToShow(p.getLatitude(), p.getLongitude(),
|
||||||
settings.getLastKnownMapZoom(), pd); //$NON-NLS-1$
|
settings.getLastKnownMapZoom(), pd); //$NON-NLS-1$
|
||||||
startMapActivityAndCloseCurrent();
|
|
||||||
} else {
|
} else {
|
||||||
Uri uri = intent.getData();
|
Uri uri = intent.getData();
|
||||||
String searchString = p != null && p.isGeoAddress() ? p.getQuery() : uri.toString();
|
String searchString = p != null && p.isGeoAddress() ? p.getQuery() : uri.toString();
|
||||||
settings.setSearchRequestToShow(searchString);
|
settings.setSearchRequestToShow(searchString);
|
||||||
startMapActivityAndCloseCurrent();
|
|
||||||
}
|
}
|
||||||
|
MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this);
|
||||||
|
GeoIntentActivity.this.finish();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -151,11 +151,6 @@ public class GeoIntentActivity extends OsmandListActivity {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startMapActivityAndCloseCurrent() {
|
|
||||||
MapActivity.launchMapActivityMoveToTop(GeoIntentActivity.this);
|
|
||||||
GeoIntentActivity.this.finish();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
dismiss();
|
dismiss();
|
||||||
|
|
Loading…
Reference in a new issue