You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/08/15 09:39:09 UTC

[GitHub] [incubator-weex] Darin726 commented on a change in pull request #2830: [Android] Fix Android Crash in PostTaskToMsgLoop

Darin726 commented on a change in pull request #2830: [Android] Fix Android Crash in PostTaskToMsgLoop
URL: https://github.com/apache/incubator-weex/pull/2830#discussion_r314240163
 
 

 ##########
 File path: android/sdk/src/main/java/com/taobao/weex/bridge/RequestHandler.java
 ##########
 @@ -124,7 +129,12 @@ public void onSuccess(WXResponse response) {
               null
           );
         }
-        nativeInvokeOnSuccess(sNativeCallback, script, bundleTypeStr);
+        WXBridgeManager.getInstance().post(new Runnable() {
+          @Override
+          public void run() {
+            nativeInvokeOnSuccess(sNativeCallback, script, bundleTypeStr);
 
 Review comment:
   这里需要判断一下 jsframework 是否初始化 ok 了

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services