Skip to content

Commit 236a35b

Browse files
author
Craig Mautner
committed
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
1 parent a9144ff commit 236a35b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8403,7 +8403,8 @@ private void handleNotObscuredLocked(final WindowState w, final long currentTime
84038403
// performance reasons).
84048404
mInnerFields.mObscured = true;
84058405
} else if (canBeSeen && (attrFlags & FLAG_DIM_BEHIND) != 0
8406-
&& !(w.mAppToken != null && w.mAppToken.hiddenRequested)) {
8406+
&& !(w.mAppToken != null && w.mAppToken.hiddenRequested)
8407+
&& !w.mExiting) {
84078408
if (localLOGV) Slog.v(TAG, "Win " + w + " obscured=" + mInnerFields.mObscured);
84088409
if (!mInnerFields.mDimming) {
84098410
//Slog.i(TAG, "DIM BEHIND: " + w);

0 commit comments

Comments
 (0)