disable search by geo address
This commit is contained in:
parent
b2718a9d87
commit
9715851568
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,7 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
|
||||
private ProgressDialog progressDlg;
|
||||
private LatLon location;
|
||||
protected static final boolean DO_NOT_SEARCH_ADDRESS = true;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -299,6 +300,10 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
if (geo != null) {
|
||||
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,
|
||||
// try to search POI
|
||||
|
|
Loading…
Reference in a new issue