You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/09/21 13:39:04 UTC

[37/50] [abbrv] incubator-weex git commit: 测试

测试


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/3dd927eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/3dd927eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/3dd927eb

Branch: refs/heads/0.16-dev
Commit: 3dd927eb02590d92ca82e31081f3c9795f6aaa5c
Parents: 91455e2
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Thu Sep 21 16:01:53 2017 +0800
Committer: jianbai.gbj <ji...@alibaba-inc.com>
Committed: Thu Sep 21 16:01:53 2017 +0800

----------------------------------------------------------------------
 .../list/template/CellLifecycleManager.java        |  4 ++++
 .../list/template/WXRecyclerTemplateList.java      |  2 ++
 pre-build/native-bundle-main.js                    | 17 ++++++++---------
 3 files changed, 14 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3dd927eb/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/CellLifecycleManager.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/CellLifecycleManager.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/CellLifecycleManager.java
index 28c352b..884f0b4 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/CellLifecycleManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/CellLifecycleManager.java
@@ -188,6 +188,10 @@ public class CellLifecycleManager {
         fireChildEvent(Constants.Event.SLOT_LIFECYCLE.DESTORY, cell, refs, position);
     }
 
+    public Map<Integer, Boolean> getFiredCreateEvent() {
+        return firedCreateEvent;
+    }
+
     private final  void  fireChildEvent(String event, WXCell cell, List<String> refs, int position){
         if(refs == null || refs.size() == 0){
             return;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3dd927eb/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/WXRecyclerTemplateList.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/WXRecyclerTemplateList.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/WXRecyclerTemplateList.java
index 03a3eb9..7a4c3e9 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/WXRecyclerTemplateList.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/template/WXRecyclerTemplateList.java
@@ -180,6 +180,8 @@ public class WXRecyclerTemplateList extends WXVContainer<BounceRecyclerView> imp
         cellLifecycleManager = new CellLifecycleManager(this);
         orientation = mDomObject.getOrientation();
         listDataTemplateKey = WXUtils.getString(getDomObject().getAttrs().get(Constants.Name.Recycler.LIST_DATA_TEMPLATE_KEY), Constants.Name.Recycler.SLOT_TEMPLATE_TYPE);
+        listDataItemKey = WXUtils.getString(getDomObject().getAttrs().get(Constants.Name.Recycler.LIST_DATA_ITEM), listDataItemKey);
+        listDataIndexKey = WXUtils.getString(getDomObject().getAttrs().get(Constants.Name.Recycler.LIST_DATA_ITEM_INDEX), listDataIndexKey);
     }
 
     @Override