Esempio n. 1
0
 @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");
 }
Esempio n. 2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   mContentPresenter.detachView();
   if (webView != null) {
     webView.destroy();
   }
 }
Esempio n. 3
0
 @Override
 public void onReloadClicked() {
   mContentPresenter.onReload();
 }
Esempio n. 4
0
 @Override
 public void openBrowser(String url) {
   mContentPresenter.handlerUrl(url);
 }
Esempio n. 5
0
 @Override
 public void onPageFinished(WebView webView, String str) {
   mContentPresenter.onThreadInfoReceive(tid, fid, pid, page);
 }