diff options
| author | 2009-05-04 17:45:59 -0700 | |
|---|---|---|
| committer | 2009-05-04 17:45:59 -0700 | |
| commit | 20fb46fa1e16b57fe7aba2ac7cdf1efbf1a12393 (patch) | |
| tree | be8ded8ea4b4983b5064972a8f90c22bcf2c0ad7 | |
| parent | fa3e5562793c5bd7d4513a9e1a5869e763a47ab5 (diff) | |
Fixes 1830181. Tapping disabled items in a ListView would cause the framework to take a code path that wasn't resetting the mMotionCorrection variable if it had been previously set. This would force ListView to apply a scroll to its children even though it was unnecessary. This simple fix prevents the issue by resetting mMotionCorrection appropriately.
| -rw-r--r-- | core/java/android/widget/AbsListView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index b408f27abf07..767c7e7920d0 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1908,6 +1908,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te // User clicked on whitespace, or stopped a fling. It is a scroll. createScrollingCache(); mTouchMode = TOUCH_MODE_SCROLL; + mMotionCorrection = 0; motionPosition = findMotionRow(y); reportScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL); } |