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:
[email protected]


With regards,
Apache Git Services

Reply via email to