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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user