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

Commit 7041bd2c authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 35077089: am d5bda747: am 2cc95775: Merge "Fix possible crash in System UI" into klp-dev

* commit '35077089':
  Fix possible crash in System UI
parents 1a452a57 35077089
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1556,6 +1556,9 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
            if (mTouchState == TOUCH_STATE_SCROLLING) {
                final int activePointerId = mActivePointerId;
                final int pointerIndex = ev.findPointerIndex(activePointerId);

                if (pointerIndex == -1) return true;

                final float x = ev.getX(pointerIndex);
                final VelocityTracker velocityTracker = mVelocityTracker;
                velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);