diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index a7260d032c..11ea4bd863 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -1871,6 +1871,11 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC @Override 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(); mainSearchFragment.getAdapter().clear(); updateTabbarVisibility(false);