Merge "Fixed an issue where the notification scrim could become transparent" into sc-dev am: f7477f8ff4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14843822

Change-Id: Id9e3ec6b44b39c89530ea5122e72461686fb90e4
This commit is contained in:
Selim Cinek
2021-06-07 09:50:51 +00:00
committed by Automerger Merge Worker

View File

@@ -2233,6 +2233,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);
}