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

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

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

* commit '4140a21e':
  Fix scrolling of QS panel when no notification is present.
parents b9b5d86b 4140a21e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2143,6 +2143,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();
@@ -2156,7 +2157,6 @@ public class NotificationStackScrollLayout extends ViewGroup
                mLastMotionY = y;
                mDownX = (int) ev.getX();
                mActivePointerId = ev.getPointerId(0);
                mScrolledToTopOnFirstDown = isScrolledToTop();

                initOrResetVelocityTracker();
                mVelocityTracker.addMovement(ev);