Don't let hidden keyguard interfere with button and screen brightness overrides
Change-Id: Ibdc115b8fb6900b0f859085c13a707750deeab57 BUG: 2252317 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@ -10267,9 +10267,10 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
&& buttonBrightness < 0) {
|
||||
buttonBrightness = w.mAttrs.buttonBrightness;
|
||||
}
|
||||
if (attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
|
||||
|| attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD
|
||||
|| attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_ERROR) {
|
||||
if (canBeSeen
|
||||
&& (attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
|
||||
|| attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD
|
||||
|| attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_ERROR)) {
|
||||
syswin = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user