Bootstrap

ssl证书错误导致WebView白屏问题的解决方法

废话不多说上代码:

public class ArticleWebViewClient extends WebViewClient {

    @Override
    public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);
        //重置webview中img标签的图片大小
        imgReset(view);
    }

    @Override
    public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {

        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
            Uri url = request.getUrl();
            String path = url.toString();
            if (!TextUtils.isEmpty(path) && path.startsWith("tel:")) {
                Q.phoneDial(BaseActivity.baseActivity, path);
                return true;
            }
            view.loadUrl(path);
        }
        
        return super.shouldOverrideUrlLoading(view, request);
    }

    @Override
    public void onReceivedSslError(WebView view, SslErrorHan
;