diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 3a01791380ed5..dc71c10ed87cf 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -2226,6 +2226,8 @@ public class NotificationPanelViewController extends PanelViewController { left = mNotificationStackScrollLayoutController.getLeft(); right = mNotificationStackScrollLayoutController.getRight(); } + // top should never be lower than bottom, otherwise it will be invisible. + top = Math.min(top, bottom); applyQSClippingBounds(left, top, right, bottom, visible); }