Skip to content

Commit ff92f04

Browse files
author
Craig Mautner
committed
Hide wallpaper when wallpaper target gets hidden.
Another location that potentially hides the wallpaper target while leaving the wallpaper itself still visible. Causes the wallpaper to show up when upper surfaces are transparent all the way down. Fixes bug b6621986. Change-Id: If75053160f041eb78868eda36b7820fb2110d069
1 parent fab75dc commit ff92f04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,11 @@ public void prepareSurfaceLocked(final boolean recoveringMemory) {
10671067

10681068
if (w.mAttachedHidden || !w.isReadyForDisplay()) {
10691069
hide();
1070+
// TODO: Consider moving the following into hide() and out of finishExit() as well.
1071+
if (mService.mWallpaperTarget == mWin && mService.mLowerWallpaperTarget == null) {
1072+
mAnimator.hideWallpapersLocked();
1073+
mAnimator.mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER;
1074+
}
10701075
// If we are waiting for this window to handle an
10711076
// orientation change, well, it is hidden, so
10721077
// doesn't really matter. Note that this does

0 commit comments

Comments
 (0)