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

Commit 79aa4030 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Can't stop the fling! Bug: 5335420" into ics-factoryrom

parents 259db3f6 b0c71eb9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3654,7 +3654,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                vt.computeCurrentVelocity(1000, mMaximumVelocity);
                final float yvel = -vt.getYVelocity(activeId);

                if (scroller.isScrollingInDirection(0, yvel)) {
                if (Math.abs(yvel) >= mMinimumVelocity
                        && scroller.isScrollingInDirection(0, yvel)) {
                    // Keep the fling alive a little longer
                    postDelayed(this, FLYWHEEL_TIMEOUT);
                } else {
+2 −0
Original line number Diff line number Diff line
@@ -1020,6 +1020,8 @@ bool VelocityTracker::getVelocity(uint32_t id, float* outVx, float* outVy) const
            return true;
        }
    }
    *outVx = 0;
    *outVy = 0;
    return false;
}

+1 −1

File changed.

Contains only whitespace changes.