You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/07/15 09:14:14 UTC

[incubator-weex] branch master updated: [Android] No need to reboot js engine if render by eagle (#2696)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 961ac83  [Android] No need to reboot js engine if render by eagle (#2696)
961ac83 is described below

commit 961ac8348eb9ff09cfc73505b7069e42d5081f03
Author: darin <dy...@qq.com>
AuthorDate: Mon Jul 15 17:14:10 2019 +0800

    [Android] No need to reboot js engine if render by eagle (#2696)
---
 android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
index 81b202e..d531d0f 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
@@ -891,6 +891,11 @@ public class WXSDKInstance implements IWXActivityStateListener,View.OnLayoutChan
             return;
           }
 
+          // there is no need to reboot js engine if render by eagle
+          if(isDataRender()) {
+            return;
+          }
+
           View containerView = getContainerView();
           if(containerView instanceof ViewGroup) {
             if(0 == ((ViewGroup) containerView).getChildCount()) {