disable search by geo address

This commit is contained in:
Victor Shcherb 2015-08-05 00:20:15 +02:00
parent b2718a9d87
commit 9715851568

View file

@ -49,6 +49,7 @@ public class GeoIntentActivity extends OsmandListActivity {
private ProgressDialog progressDlg; private ProgressDialog progressDlg;
private LatLon location; private LatLon location;
protected static final boolean DO_NOT_SEARCH_ADDRESS = true;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
@ -299,6 +300,10 @@ public class GeoIntentActivity extends OsmandListActivity {
if (geo != null) { if (geo != null) {
return new ExecutionResult(Collections.singleton(geo)); return new ExecutionResult(Collections.singleton(geo));
} }
// do not
if(DO_NOT_SEARCH_ADDRESS) {
return ExecutionResult.EMPTY;
}
// now try to search the City, Street, Etc.. if Street is not found, // now try to search the City, Street, Etc.. if Street is not found,
// try to search POI // try to search POI