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

Commit 799dc290 authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

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
parent 0def7266
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();