From b43d6a30ad1e7bf0e64192a1f144b3fe1bcf7f95 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 19 Nov 2010 16:41:20 -0800 Subject: b/3215774 Fix scrollMode notifications When transitioning from a fling to a touch the mode was being set to idle instead of ending up in scroll. This corrects the notifications to get sent in the correct order. Change-Id: Ideed6e4064b2be62788307f4232015fa88e101b4 --- core/java/android/widget/AbsListView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index a3e9bc9..70cfee9 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -2542,7 +2542,6 @@ public abstract class AbsListView extends AdapterView implements Te mTouchMode = TOUCH_MODE_SCROLL; mMotionCorrection = 0; motionPosition = findMotionRow(y); - reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL); mFlingRunnable.flywheelTouch(); } } @@ -2968,6 +2967,7 @@ public abstract class AbsListView extends AdapterView implements Te } else { endFling(); mTouchMode = TOUCH_MODE_SCROLL; + reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL); } } }; -- cgit v1.1