summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Powell <adamp@google.com> 2010-04-07 09:48:48 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-04-07 09:48:48 -0700
commiteb3d47e43ac971b7d965db9a53ca92db2ce47d77 (patch)
treee8f3ecbd111120eda16f43a4ebc217d18ea02743
parentf61eade258d5274b8447c0ea936ee578b7dc063a (diff)
parent91f234fe4d070121d65095e98c9b2e958cf22548 (diff)
Merge "Fix bug 2574860 - fix AbsListView.trackMotionScroll edge detection" into froyo
-rw-r--r--core/java/android/widget/AbsListView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java
index 4aae05e7ef76..48e7f79d38e4 100644
--- a/core/java/android/widget/AbsListView.java
+++ b/core/java/android/widget/AbsListView.java
@@ -2856,13 +2856,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
final int firstPosition = mFirstPosition;
- if (firstPosition == 0 && firstTop >= listPadding.top && deltaY > 0) {
+ if (firstPosition == 0 && firstTop >= listPadding.top && deltaY >= 0) {
// Don't need to move views down if the top of the first position
// is already visible
return true;
}
- if (firstPosition + childCount == mItemCount && lastBottom <= end && deltaY < 0) {
+ if (firstPosition + childCount == mItemCount && lastBottom <= end && deltaY <= 0) {
// Don't need to move views up if the bottom of the last position
// is already visible
return true;