From 2f05bb343ea56c2b0636e75c8c415d170080fa9b Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Mon, 19 Feb 2018 16:42:27 +0100 Subject: [PATCH] GlobalActions: Fix scrim with display cutouts Fixes an issue where the GlobalActions scrim would not extend under the display cutout. Change-Id: I307ccf400b6db5a5569546cfc2fb64cd64ed2e61 Fixes: 73483285 Test: Enable display cutout; long press power; verify scrim extends under the cutout (and over the statusbar) --- .../android/systemui/globalactions/GlobalActionsDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java index 259bff28d458d..c4c1ba703a995 100644 --- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java @@ -14,6 +14,8 @@ package com.android.systemui.globalactions; +import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; + import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.SOME_AUTH_REQUIRED_AFTER_USER_REQUEST; import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_NOT_REQUIRED; import static com.android.internal.widget.LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_AFTER_USER_LOCKDOWN; @@ -245,6 +247,7 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener, } else { WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes(); attrs.setTitle("ActionsDialog"); + attrs.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; mDialog.getWindow().setAttributes(attrs); mDialog.show(); mWindowManagerFuncs.onGlobalActionsShown();