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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user