Automated import from //branches/donutburger/...@142722,142722

This commit is contained in:
Dianne Hackborn
2009-03-25 17:10:37 -07:00
committed by The Android Open Source Project
parent 61be3ae696
commit 9ed4a4b0d7
2 changed files with 38 additions and 20 deletions

View File

@@ -7799,6 +7799,7 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
boolean blurring = false;
boolean dimming = false;
boolean covered = false;
boolean syswin = false;
for (i=N-1; i>=0; i--) {
WindowState w = (WindowState)mWindows.get(i);
@@ -8058,9 +8059,15 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
if ((attrFlags&FLAG_KEEP_SCREEN_ON) != 0) {
holdScreen = w.mSession;
}
if (w.mAttrs.screenBrightness >= 0 && screenBrightness < 0) {
if (!syswin && w.mAttrs.screenBrightness >= 0
&& screenBrightness < 0) {
screenBrightness = w.mAttrs.screenBrightness;
}
if (attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG
|| attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD
|| attrs.type == WindowManager.LayoutParams.TYPE_SYSTEM_ERROR) {
syswin = true;
}
}
if (w.isFullscreenOpaque(dw, dh)) {
// This window completely covers everything behind it,