Commit 29af2755 by amateur

1

1 parent 89a5894f
......@@ -3,7 +3,6 @@ package com.polysoft.nafmii.fragment;
import android.os.Bundle;
import com.polysoft.nafmii.webview.HomeWebviewHandler;
import com.polysoft.nafmii.webview.NativeApi;
import com.tencent.smtt.sdk.WebView;
public class HomeWebviewFragment extends WebViewFragment {
......@@ -19,9 +18,6 @@ public class HomeWebviewFragment extends WebViewFragment {
@Override
protected void setWebView(WebView webView) {
super.setWebView(webView);
HomeWebviewHandler handler = new HomeWebviewHandler(this, webView);
webView.addJavascriptInterface(new NativeApi(handler), "$NativeApi");
super.setWebviewHandler(handler);
super.setWebviewHandler(new HomeWebviewHandler(this, webView));
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!