This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BridgeCallback implements IOAcknowledge, IOCallback { | |
... | |
@Override | |
public void ack(Object... args) { | |
String argsStr = TextUtils.join(",", args); | |
final String callback = "javascript:" + mCallback + "(" + argsStr + ");"; | |
((MainActivity)mContext).runOnUiThread(new Runnable() { | |
public void run() { | |
mWebView.loadUrl(callback); |