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

Commit 5665c0f2 authored by Brian Attwell's avatar Brian Attwell Committed by Android (Google) Code Review
Browse files

Merge "Pass different dy into dispatchNestedSCroll" into lmp-dev

parents af8e823d e0e42173
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3323,7 +3323,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        if (mLastY == Integer.MIN_VALUE) {
            rawDeltaY -= mMotionCorrection;
        }
        if (dispatchNestedPreScroll(0, -rawDeltaY, mScrollConsumed, mScrollOffset)) {
        if (dispatchNestedPreScroll(0, mLastY != Integer.MIN_VALUE ? mLastY - y : -rawDeltaY,
                mScrollConsumed, mScrollOffset)) {
            rawDeltaY += mScrollConsumed[1];
            scrollOffsetCorrection = -mScrollOffset[1];
            scrollConsumedCorrection = mScrollConsumed[1];