Skip to content

Commit

Permalink
增加一个接受JsCallJava参数的构造函数
Browse files Browse the repository at this point in the history
  • Loading branch information
pedant committed Dec 25, 2014
1 parent 31d6929 commit 40d9b35
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public InjectedChromeClient (String injectedName, Class injectedCls) {
mJsCallJava = new JsCallJava(injectedName, injectedCls);
}

public InjectedChromeClient (JsCallJava jsCallJava) {
mJsCallJava = jsCallJava;
}

// 处理Alert事件
@Override
public boolean onJsAlert(WebView view, String url, String message, final JsResult result) {
Expand Down

0 comments on commit 40d9b35

Please sign in to comment.