You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by do...@apache.org on 2019/05/14 03:51:15 UTC

[incubator-weex] branch bugfix/loadMoreBugfix created (now f7ad9e0)

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

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


      at f7ad9e0  try-fix-loadmore-bug

This branch includes the following new commits:

     new f7ad9e0  try-fix-loadmore-bug

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: try-fix-loadmore-bug

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

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

commit f7ad9e0708e343622599e64062bb8363c9da3c73
Author: 东煜 <ya...@alibaba-inc.com>
AuthorDate: Tue May 14 11:50:59 2019 +0800

    try-fix-loadmore-bug
---
 .../ui/view/listview/adapter/WXRecyclerViewOnScrollListener.java   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/view/listview/adapter/WXRecyclerViewOnScrollListener.java b/android/sdk/src/main/java/com/taobao/weex/ui/view/listview/adapter/WXRecyclerViewOnScrollListener.java
index 694c8b5..6905ba1 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/view/listview/adapter/WXRecyclerViewOnScrollListener.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/view/listview/adapter/WXRecyclerViewOnScrollListener.java
@@ -84,6 +84,13 @@ public class WXRecyclerViewOnScrollListener extends RecyclerView.OnScrollListene
           listener.get().onLoadMore(bottomOffset);
         }
       }
+
+      if (mCurrentScrollState == RecyclerView.SCROLL_STATE_SETTLING) {
+        if(recyclerView != null) {
+          recyclerView.stopScroll();
+        }
+
+      }
     }
   }