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

Commit 809077d4 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Fix QS expand on tablets" into nyc-dev

parents 53befa2e 85686d6e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -789,8 +789,9 @@ public class NotificationPanelView extends PanelView implements
    }

    private boolean isInQsArea(float x, float y) {
        return (x >= mQsContainer.getX() && x <= mQsContainer.getX() + mQsContainer.getWidth()) &&
                (y <= mNotificationStackScroller.getBottomMostNotificationBottom()
        return (x >= mQsDensityContainer.getX()
                && x <= mQsDensityContainer.getX() + mQsDensityContainer.getWidth())
                && (y <= mNotificationStackScroller.getBottomMostNotificationBottom()
                || y <= mQsContainer.getY() + mQsContainer.getHeight());
    }

@@ -1337,7 +1338,8 @@ public class NotificationPanelView extends PanelView implements
            return false;
        }
        View header = mKeyguardShowing ? mKeyguardStatusBar : mQsContainer.getHeader();
        boolean onHeader = x >= header.getX() && x <= header.getX() + header.getWidth()
        boolean onHeader = x >= mQsDensityContainer.getX()
                && x <= mQsDensityContainer.getX() + mQsDensityContainer.getWidth()
                && y >= header.getTop() && y <= header.getBottom();
        if (mQsExpanded) {
            return onHeader || (yDiff < 0 && isInQsArea(x, y));