Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46af6a8b authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Don't let hidden keyguard interfere with button and screen brightness overrides



Change-Id: Ibdc115b8fb6900b0f859085c13a707750deeab57
BUG: 2252317

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 2e2096fc
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -10267,9 +10267,10 @@ public class WindowManagerService extends IWindowManager.Stub
                                && buttonBrightness < 0) {
                            buttonBrightness = w.mAttrs.buttonBrightness;
                        }
                        if (attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
                        if (canBeSeen
                                && (attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
                                 || attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD
                                || attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_ERROR) {
                                 || attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_ERROR)) {
                            syswin = true;
                        }
                    }