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

Commit 11abec0e authored by Robert Horvath's avatar Robert Horvath
Browse files

Change window type of Inattentive Sleep Warning window

Increase the z-order or the inattentive sleep warning window, putting it
in front of more layers.

Bug: 157122901
Test: adb shell settings put secure attentive_timeout 32000
Change-Id: I5c9c60f0fc779717c02300c03eaa512408a979a6
parent 19770909
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ public class InattentiveSleepWarningView extends FrameLayout {
        final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT,
                WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
                WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
                PixelFormat.TRANSLUCENT);
        lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;