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

Commit ced9ab11 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am 19694a0e: am 4140a21e: Merge "Fix scrolling of QS panel when no notification is present."

* commit '19694a0e':
  Fix scrolling of QS panel when no notification is present.
parents f9a75e1a 19694a0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2145,6 +2145,7 @@ public class NotificationStackScrollLayout extends ViewGroup

            case MotionEvent.ACTION_DOWN: {
                final int y = (int) ev.getY();
                mScrolledToTopOnFirstDown = isScrolledToTop();
                if (getChildAtPosition(ev.getX(), y) == null) {
                    setIsBeingDragged(false);
                    recycleVelocityTracker();
@@ -2158,7 +2159,6 @@ public class NotificationStackScrollLayout extends ViewGroup
                mLastMotionY = y;
                mDownX = (int) ev.getX();
                mActivePointerId = ev.getPointerId(0);
                mScrolledToTopOnFirstDown = isScrolledToTop();

                initOrResetVelocityTracker();
                mVelocityTracker.addMovement(ev);