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
This commit is contained in:
Shawn Lee
2023-04-24 12:02:31 -07:00
parent 742405591b
commit 8ae25474b4

View File

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