From 11abec0eefe4f09650d47aafc15d1f7bb9cba7bd Mon Sep 17 00:00:00 2001 From: Robert Horvath Date: Wed, 20 May 2020 13:54:25 +0200 Subject: [PATCH] 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 --- .../com/android/systemui/power/InattentiveSleepWarningView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/power/InattentiveSleepWarningView.java b/packages/SystemUI/src/com/android/systemui/power/InattentiveSleepWarningView.java index cf1bc7dc115d4..1ed98c0a8f90c 100644 --- a/packages/SystemUI/src/com/android/systemui/power/InattentiveSleepWarningView.java +++ b/packages/SystemUI/src/com/android/systemui/power/InattentiveSleepWarningView.java @@ -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;