Skip to content

Commit

Permalink
fix(android): should call onInterceptPromiseCallBack first
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and zoomchan-cxj committed Apr 27, 2022
1 parent 301562c commit 484d6c6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -96,7 +96,8 @@ private boolean onInterceptPromiseCallBack(Object resultObject) {
}

public void doCallback(int code, Object resultObject) {
if (TextUtils.equals(CALL_ID_NO_CALLBACK, mCallId) || onInterceptPromiseCallBack(resultObject)) {
if (onInterceptPromiseCallBack(resultObject) || TextUtils
.equals(CALL_ID_NO_CALLBACK, mCallId)) {
return;
}
if (resultObject instanceof JSValue) {
Expand Down

0 comments on commit 484d6c6

Please sign in to comment.