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

Commit 75885974 authored by Adrian Roos's avatar Adrian Roos
Browse files

DisplayCutout: Let dreams always extend under the cutout

Change-Id: I4f1254afec1c99697a0ba51f5d4bbaabc404ae01
Fixes: 72757379
Test: Set lockscreen, disable "power key locks immediately", enable screensaver while plugged in, turn screen off while plugged in, verify cant see through cutout area.
parent 944836c6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2655,6 +2655,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                        | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
                attrs.flags &= ~WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH;
                break;
            case TYPE_DREAM:
                // Dreams don't have an app window token and can thus not be letterboxed.
                // Hence always let them extend under the cutout.
                attrs.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
                break;
            case TYPE_STATUS_BAR:

                // If the Keyguard is in a hidden state (occluded by another window), we force to