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

Commit ebd85894 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix QS interception on tablets" into lmp-dev

parents a3256cd3 0c85e867
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -631,9 +631,10 @@ public class NotificationPanelView extends PanelView implements
    }

    private boolean isInQsArea(float x, float y) {
        return mStatusBarState != StatusBarState.SHADE
                || y <= mNotificationStackScroller.getBottomMostNotificationBottom()
                || y <= mQsContainer.getY() + mQsContainer.getHeight();
        return mStatusBarState != StatusBarState.SHADE ||
                (x >= mScrollView.getLeft() && x <= mScrollView.getRight()) &&
                        (y <= mNotificationStackScroller.getBottomMostNotificationBottom()
                                || y <= mQsContainer.getY() + mQsContainer.getHeight());
    }

    private void handleQsDown(MotionEvent event) {