You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by lu...@apache.org on 2019/05/29 13:11:53 UTC

[incubator-weex] branch bugfix/preinti-instance created (now 5ab7735)

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

luckychen pushed a change to branch bugfix/preinti-instance
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git.


      at 5ab7735  [Android] 1. fix instance not found on preDownLoadMode 2. fix memleak after instance destroy

This branch includes the following new commits:

     new 5ab7735  [Android] 1. fix instance not found on preDownLoadMode 2. fix memleak after instance destroy

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-weex] 01/01: [Android] 1. fix instance not found on preDownLoadMode 2. fix memleak after instance destroy

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

luckychen pushed a commit to branch bugfix/preinti-instance
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git

commit 5ab7735d5d60dd7f23839b6652c7606d82dec1ac
Author: zhongcang <pe...@alibaba-inc.com>
AuthorDate: Wed May 29 21:11:32 2019 +0800

    [Android] 1. fix instance not found on preDownLoadMode 2. fix memleak after instance destroy
---
 android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 6220b01..cfd2380 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
@@ -448,6 +448,7 @@ public class WXSDKInstance implements IWXActivityStateListener,View.OnLayoutChan
     mInstanceId = WXSDKManager.getInstance().generateInstanceId();
     mWXPerformance = new WXPerformance(mInstanceId);
     mApmForInstance = new WXInstanceApm(mInstanceId);
+    WXSDKManager.getInstance().getAllInstanceMap().put(mInstanceId,this);
   }
 
 
@@ -1746,7 +1747,7 @@ public class WXSDKInstance implements IWXActivityStateListener,View.OnLayoutChan
         public void run() {
           WXSDKManager.getInstance().getAllInstanceMap().remove(mInstanceId);
         }
-      },5000);
+      },1000);
     }
   }