You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/08/28 05:22:54 UTC

[2/5] incubator-weex git commit: fix sticky bug

fix sticky bug


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

Branch: refs/heads/0.16-dev
Commit: 5de82f390c9668ad6798d9db6978930c3a371a36
Parents: d1dafdb
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Mon Aug 28 09:46:07 2017 +0800
Committer: jianbai.gbj <ji...@alibaba-inc.com>
Committed: Mon Aug 28 09:46:07 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5de82f39/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
index 9aa85f6..12487e8 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
@@ -623,7 +623,7 @@ public abstract class BasicListComponent<T extends ViewGroup & ListComponentView
           boolean removeSticky = cell.getLocationFromStart() <= 0 && top > 0 && dy <= 0;
           if (showSticky) {
             bounceRecyclerView.notifyStickyShow(cell);
-          } else if (removeSticky) {
+          } else if (removeSticky || removeOldSticky) {
             bounceRecyclerView.notifyStickyRemove(cell);
           }
           cell.setLocationFromStart(top);