Turn off dimming immediately for removed windows.

Dimming was only turning off immediately for app-animated windows.
For removed windows dimming wouldn't turn off until the window was
completely gone.

Fixes bug 6628057.

Change-Id: I3ba6501b10a31b6f8c91012e17ad8734a84050c4
This commit is contained in:
Craig Mautner
2012-06-08 09:54:59 -07:00
parent a9144ffd64
commit 236a35b77a

View File

@@ -8403,7 +8403,8 @@ public class WindowManagerService extends IWindowManager.Stub
// performance reasons).
mInnerFields.mObscured = true;
} else if (canBeSeen && (attrFlags & FLAG_DIM_BEHIND) != 0
&& !(w.mAppToken != null && w.mAppToken.hiddenRequested)) {
&& !(w.mAppToken != null && w.mAppToken.hiddenRequested)
&& !w.mExiting) {
if (localLOGV) Slog.v(TAG, "Win " + w + " obscured=" + mInnerFields.mObscured);
if (!mInnerFields.mDimming) {
//Slog.i(TAG, "DIM BEHIND: " + w);