From 21a68bda905c5ed5ca67cc0959d4618c3ec0542c Mon Sep 17 00:00:00 2001 From: caiweihao <807145905@qq.com> Date: Fri, 10 Oct 2014 14:30:25 +0800 Subject: [PATCH] Update PullToRefreshListView.java Fixed an issue with onScroll() where the listview would not scroll to be released state if you stay in refreshed state. --- .../com/markupartist/android/widget/PullToRefreshListView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulltorefresh/src/com/markupartist/android/widget/PullToRefreshListView.java b/pulltorefresh/src/com/markupartist/android/widget/PullToRefreshListView.java index 315ebf6..bc51d20 100644 --- a/pulltorefresh/src/com/markupartist/android/widget/PullToRefreshListView.java +++ b/pulltorefresh/src/com/markupartist/android/widget/PullToRefreshListView.java @@ -289,7 +289,7 @@ public void onScroll(AbsListView view, int firstVisibleItem, mRefreshViewImage.clearAnimation(); mRefreshViewImage.startAnimation(mFlipAnimation); mRefreshState = RELEASE_TO_REFRESH; - } else if (mRefreshView.getBottom() < mRefreshViewHeight + 20 + } else if ((mRefreshView.getBottom() < mRefreshViewHeight + 20 && mRefreshView.getTop() < 0) && mRefreshState != PULL_TO_REFRESH) { mRefreshViewText.setText(R.string.pull_to_refresh_pull_label); if (mRefreshState != TAP_TO_REFRESH) {