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: Id82d1595008b5ff9ad07323a5a652e8ecbc16108
This commit is contained in:
Selim Cinek
2021-06-07 09:50:34 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}