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