loadHistoryUrls = new ArrayList();
public SingleWebViewFragment() {
}
private Bundle inputBundle;
@SuppressLint("ValidFragment")
public SingleWebViewFragment(Bundle bundle) {
this.inputBundle = bundle;
}
@Override
protected boolean shouldOverrideUrl(WebView view, String url) {
if (url.startsWith("tel:")) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (url.startsWith("http:") || url.startsWith("https:")) {
view.loadUrl(url);
}
view.loadUrl(url);
return true;
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
}
@Override
public void onCreate(@Nullable Bun