You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mi...@apache.org on 2018/03/01 08:13:31 UTC

[2/3] incubator-weex git commit: [WEEX-218][android] support leftGap and rightGap for waterfall component, template list orientation support updateAttrs

[WEEX-218][android] support leftGap and rightGap for waterfall component, template list orientation support updateAttrs


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

Branch: refs/heads/master
Commit: ff71bab4a217256d681f3dec26a6e05a2814f892
Parents: b442122
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Tue Feb 13 13:19:47 2018 +0800
Committer: jianbai.gbj <ji...@alibaba-inc.com>
Committed: Tue Feb 13 13:19:47 2018 +0800

----------------------------------------------------------------------
 .../java/com/taobao/weex/ui/component/list/WXListComponent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ff71bab4/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
index 302e413..fb5597f 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
@@ -87,7 +87,7 @@ public class WXListComponent extends BasicListComponent<BounceRecyclerView> {
           bounceRecyclerView.getSwipeLayout().setNestedScrollingEnabled(true);
       }
     }
-    if(mRecyclerDom.getSpanOffsets() != null){
+    if(mRecyclerDom != null && mRecyclerDom.getSpanOffsets() != null){
        bounceRecyclerView.getInnerView().addItemDecoration(new GapItemDecoration(this));
     }
     return  bounceRecyclerView;