Merge pull request #5755 from osmandapp/Fix_4735

Fix_4735
This commit is contained in:
Alexander Sytnyk 2018-07-31 13:36:40 +03:00 committed by GitHub
commit 4ad046393d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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