Merge "Fixing notification scrim bounds in split shade" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0be45a9f5b
@@ -2073,20 +2073,18 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
setQsExpansionEnabled(mAmbientState.getScrollY() == 0);
|
setQsExpansionEnabled(mAmbientState.getScrollY() == 0);
|
||||||
|
|
||||||
int radius = mScrimCornerRadius;
|
int radius = mScrimCornerRadius;
|
||||||
if (visible || !mShouldUseSplitNotificationShade) {
|
if (!mShouldUseSplitNotificationShade) {
|
||||||
if (!mShouldUseSplitNotificationShade) {
|
top = (int) Math.min(qsPanelBottomY, notificationTop);
|
||||||
top = (int) Math.min(qsPanelBottomY, notificationTop);
|
bottom = getView().getBottom();
|
||||||
bottom = getView().getBottom();
|
left = getView().getLeft();
|
||||||
left = getView().getLeft();
|
right = getView().getRight();
|
||||||
right = getView().getRight();
|
radius = (int) MathUtils.lerp(mScreenCornerRadius, mScrimCornerRadius,
|
||||||
radius = (int) MathUtils.lerp(mScreenCornerRadius, mScrimCornerRadius,
|
Math.min(top / (float) mScrimCornerRadius, 1f));
|
||||||
Math.min(top / (float) mScrimCornerRadius, 1f));
|
} else if (qsPanelBottomY > 0) { // so bounds are empty on lockscreen
|
||||||
} else {
|
top = Math.min(qsPanelBottomY, mSplitShadeNotificationsTopPadding);
|
||||||
top = Math.min(qsPanelBottomY, mSplitShadeNotificationsTopPadding);
|
bottom = mNotificationStackScrollLayoutController.getHeight();
|
||||||
bottom = mNotificationStackScrollLayoutController.getHeight();
|
left = mNotificationStackScrollLayoutController.getLeft();
|
||||||
left = mNotificationStackScrollLayoutController.getLeft();
|
right = mNotificationStackScrollLayoutController.getRight();
|
||||||
right = mNotificationStackScrollLayoutController.getRight();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fancy clipping for quick settings
|
// Fancy clipping for quick settings
|
||||||
|
|||||||
Reference in New Issue
Block a user