diff options
| author | Erik <epastern@google.com> | 2010-11-19 16:41:20 -0800 |
|---|---|---|
| committer | Erik <epastern@google.com> | 2010-11-19 16:42:43 -0800 |
| commit | b43d6a30ad1e7bf0e64192a1f144b3fe1bcf7f95 (patch) | |
| tree | 064d8c53180ecbbde42743b927af6ceb72ef8669 | |
| parent | 8c62c1d6b9738cf55411f155a061814bd886ac76 (diff) | |
| download | frameworks_base-b43d6a30ad1e7bf0e64192a1f144b3fe1bcf7f95.zip frameworks_base-b43d6a30ad1e7bf0e64192a1f144b3fe1bcf7f95.tar.gz frameworks_base-b43d6a30ad1e7bf0e64192a1f144b3fe1bcf7f95.tar.bz2 | |
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
| -rw-r--r-- | core/java/android/widget/AbsListView.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<ListAdapter> 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<ListAdapter> implements Te } else { endFling(); mTouchMode = TOUCH_MODE_SCROLL; + reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL); } } }; |
