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

Commit 4140a21e authored by Selim Cinek's avatar Selim Cinek Committed by Gerrit Code Review
Browse files

Merge "Fix scrolling of QS panel when no notification is present."

parents b15e1ff5 5e55c897
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1925,6 +1925,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();
@@ -1938,7 +1939,6 @@ public class NotificationStackScrollLayout extends ViewGroup
                mLastMotionY = y;
                mDownX = (int) ev.getX();
                mActivePointerId = ev.getPointerId(0);
                mScrolledToTopOnFirstDown = isScrolledToTop();

                initOrResetVelocityTracker();
                mVelocityTracker.addMovement(ev);