This commit is contained in:
Chumva 2018-07-31 13:05:53 +03:00
parent 39abc1e834
commit 482a407481

View file

@ -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);