From 8ae25474b4fec124f176e00c7d81a4dafbaae1d9 Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Mon, 24 Apr 2023 12:02:31 -0700 Subject: [PATCH] Fix scrim inset bug in landscape shade Left and right insets were switched in quick settings controller, leading to incorrect notification scrim layout in landscape shade. This led to the visible "flicker" described in the bug due to the launcher being visible when it shouldn't have been. Bug: 270639123 Test: confirmed scrim appears correct in all orientations Change-Id: If7d19d4045c8427280a9f2c4dccb635f3ae91006 --- .../android/systemui/shade/NotificationPanelViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java index 51179153fc73c..137a99ef39b8f 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java @@ -4474,7 +4474,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump mDisplayTopInset = combinedInsets.top; mDisplayRightInset = combinedInsets.right; mDisplayLeftInset = combinedInsets.left; - mQsController.setDisplayInsets(mDisplayRightInset, mDisplayLeftInset); + mQsController.setDisplayInsets(mDisplayLeftInset, mDisplayRightInset); mNavigationBarBottomHeight = insets.getStableInsetBottom(); updateMaxHeadsUpTranslation();