Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d23cbfc authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 63627418: Merge change 966 into donut

Merge commit '63627418'

* commit '63627418':
  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.
parents 176ef2df 63627418
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
                }