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:
Mike Lockwood
2010-03-09 08:28:22 -05:00
parent 2e2096fc08
commit 46af6a8b1f

View File

@ -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;
}
}