Skip to content

Commit 35af2ff

Browse files
author
Craig Mautner
committed
Don't start a dimming operation when hiding.
Check to see if app token is hiding before going ahead with turning on dimming. Before this fix went in we were turning dimming back on right after turning it off. Then we didn't turn it off again until all animations had completed leading to a delayed dim-off experience. Fixes bug 6378033. Change-Id: Ic819a0093ba95f62df369266c07525835703c5fa
1 parent 69c1a57 commit 35af2ff

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
@@ -8172,7 +8172,8 @@ private void handleNotObscuredLocked(final WindowState w, final long currentTime
81728172
// so we want to leave all of them as undimmed (for
81738173
// performance reasons).
81748174
mInnerFields.mObscured = true;
8175-
} else if (canBeSeen && (attrFlags & FLAG_DIM_BEHIND) != 0) {
8175+
} else if (canBeSeen && (attrFlags & FLAG_DIM_BEHIND) != 0
8176+
&& !(w.mAppToken != null && w.mAppToken.hiddenRequested)) {
81768177
if (localLOGV) Slog.v(TAG, "Win " + w + " obscured=" + mInnerFields.mObscured);
81778178
if (!mInnerFields.mDimming) {
81788179
//Slog.i(TAG, "DIM BEHIND: " + w);

0 commit comments

Comments
 (0)