From 799dc290a30207d7e055038c1143b134fb2f1ec7 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Mon, 7 Jun 2021 14:30:55 +0100 Subject: Fixing notification clipping in split shade Clipping Y position was set correctly for non-split shade, but it wasn't reset for split shade and that caused notifications to be always clipped then. This change makes clipping aligned with notification scrim. Fixes: 190032145 Test: Open shade in portrait => rotate to see split shade => notifications are not clipped Change-Id: I14b06acb9c43d0be78126ad5e93136a3ca49b167 --- .../systemui/statusbar/phone/NotificationPanelViewController.java | 1 + 1 file changed, 1 insertion(+) 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 eb46fe3c6177..27e5431c02fc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -2220,6 +2220,7 @@ public class NotificationPanelViewController extends PanelViewController { left = getView().getLeft() - mDisplayCutoutLeftInset; right = getView().getRight() - mDisplayCutoutLeftInset; } else if (qsPanelBottomY > 0) { // so bounds are empty on lockscreen + mAmbientState.setNotificationScrimTop(mSplitShadeNotificationsTopPadding); top = Math.min(qsPanelBottomY, mSplitShadeNotificationsTopPadding); bottom = mNotificationStackScrollLayoutController.getHeight(); left = mNotificationStackScrollLayoutController.getLeft(); -- cgit v1.2.3-59-g8ed1b