Skip to content

Commit 78fc35b

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev
2 parents 7f786b8 + ff92f04 commit 78fc35b

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)