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 2017/09/26 09:45:43 UTC
[2/4] incubator-weex git commit: update
update
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2ff579cf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2ff579cf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2ff579cf
Branch: refs/heads/0.16-dev
Commit: 2ff579cf6d422de71e14f8b41136a39f16ca4c6f
Parents: b8ee9c4
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Tue Sep 26 13:32:03 2017 +0800
Committer: jianbai.gbj <ji...@alibaba-inc.com>
Committed: Tue Sep 26 13:32:03 2017 +0800
----------------------------------------------------------------------
.../weex/ui/component/list/template/WXRecyclerTemplateList.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2ff579cf/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 a854a7c..519c97d 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
@@ -713,10 +713,13 @@ public class WXRecyclerTemplateList extends WXVContainer<BounceRecyclerView> imp
cellLifecycleManager.onDestory(i);
}
}
+ boolean update = listData != null;
if(param instanceof JSONArray){
listData = (JSONArray) param;
}
- notifyUpdateList();
+ if(update){
+ notifyUpdateList();
+ }
if(listData != null){
for(int i=0; i<listData.size(); i++){
cellLifecycleManager.onCreate(i);