Fix #4735
This commit is contained in:
parent
39abc1e834
commit
482a407481
1 changed files with 5 additions and 0 deletions
|
@ -1871,6 +1871,11 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onlineSearchOnClick() {
|
public void onlineSearchOnClick() {
|
||||||
|
final OsmandSettings settings = app.getSettings();
|
||||||
|
if (!settings.isInternetConnectionAvailable()) {
|
||||||
|
Toast.makeText(app, R.string.internet_not_available, Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
startOnlineSearch();
|
startOnlineSearch();
|
||||||
mainSearchFragment.getAdapter().clear();
|
mainSearchFragment.getAdapter().clear();
|
||||||
updateTabbarVisibility(false);
|
updateTabbarVisibility(false);
|
||||||
|
|
Loading…
Reference in a new issue