From 994722522ea7f84abcf959626a5b65e83612dbb5 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Wed, 28 Apr 2021 16:48:59 +0000 Subject: [PATCH] Removing unnecessary QuickSettings clip bounds in split shade Fixes: 186635452 Test: manual Change-Id: I6a5ca593e32c2f01f53e0d40b86ab8e922dbf47c --- .../phone/NotificationPanelViewController.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index f3190220d970a..83a64f1a53a8a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -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