Removing unnecessary QuickSettings clip bounds in split shade

Fixes: 186635452
Test: manual
Change-Id: I6a5ca593e32c2f01f53e0d40b86ab8e922dbf47c
This commit is contained in:
Michal Brzezinski
2021-04-28 16:48:59 +00:00
parent 16f253446d
commit 994722522e

View File

@@ -2060,7 +2060,8 @@ public class NotificationPanelViewController extends PanelViewController {
int bottom = 0;
int left = 0;
int right = 0;
boolean visible = qsFraction > 0 || qsPanelBottomY > 0;
boolean visible = (qsFraction > 0 || qsPanelBottomY > 0)
&& !mShouldUseSplitNotificationShade;
int radius = mScrimCornerRadius;
if (visible || !mShouldUseSplitNotificationShade) {
if (!mShouldUseSplitNotificationShade) {
@@ -2079,11 +2080,11 @@ public class NotificationPanelViewController extends PanelViewController {
}
}
// Fancy clipping for quick settings
if (mQs != null) {
mQs.setFancyClipping(top, bottom, radius, visible);
}
if (!mShouldUseSplitNotificationShade) {
// Fancy clipping for quick settings
if (mQs != null) {
mQs.setFancyClipping(top, bottom, radius, visible);
}
// The padding on this area is large enough that we can use a cheaper clipping strategy
mKeyguardStatusAreaClipBounds.set(left, top, right, bottom);
mKeyguardStatusViewController.setClipBounds(visible