Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev

This commit is contained in:
Craig Mautner
2012-06-08 13:14:54 -07:00
committed by Android (Google) Code Review

View File

@ -1067,6 +1067,11 @@ class WindowStateAnimator {
if (w.mAttachedHidden || !w.isReadyForDisplay()) {
hide();
// TODO: Consider moving the following into hide() and out of finishExit() as well.
if (mService.mWallpaperTarget == mWin && mService.mLowerWallpaperTarget == null) {
mAnimator.hideWallpapersLocked();
mAnimator.mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER;
}
// If we are waiting for this window to handle an
// orientation change, well, it is hidden, so
// doesn't really matter. Note that this does