From ad350671002d56ebe009bdab77f3f8cc392c991f Mon Sep 17 00:00:00 2001 From: GKF Date: Wed, 18 Jul 2018 14:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/monke/basemvplib/BaseModelImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basemvplib/src/main/java/com/monke/basemvplib/BaseModelImpl.java b/basemvplib/src/main/java/com/monke/basemvplib/BaseModelImpl.java index de38e9063a..499972cb4b 100644 --- a/basemvplib/src/main/java/com/monke/basemvplib/BaseModelImpl.java +++ b/basemvplib/src/main/java/com/monke/basemvplib/BaseModelImpl.java @@ -90,13 +90,13 @@ public void processHTML(String html) { webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setUserAgentString(userAgent); webView.addJavascriptInterface(new MyJavaScriptInterface(webView), "HTMLOUT"); - webView.loadUrl(url); webView.setWebViewClient(new WebViewClient() { @Override public void onPageFinished (WebView view, String url){ webView.loadUrl("javascript:window.HTMLOUT.processHTML(''+document.getElementsByTagName('html')[0].innerHTML+'');"); } }); + webView.loadUrl(url); }); }