@Override public void initUI(View view) { ButterKnife.bind(this, view); mContentPresenter.attachView(this); webView.setCallback(this); webView.initJockey(); webView.setOnScrollChangedCallback(this); webView.addJavascriptInterface(mContentPresenter.getJavaScriptInterface(), "HuPuBridge"); }
@Override public void onDestroy() { super.onDestroy(); mContentPresenter.detachView(); if (webView != null) { webView.destroy(); } }
@Override public void onReloadClicked() { mContentPresenter.onReload(); }
@Override public void openBrowser(String url) { mContentPresenter.handlerUrl(url); }
@Override public void onPageFinished(WebView webView, String str) { mContentPresenter.onThreadInfoReceive(tid, fid, pid, page); }