Skip to content

Commit a803371

Browse files
author
Craig Mautner
committed
Set detached wallpaper on the scale up animation.
This keeps the background wallpaper from disappearing when expanding an app that has a wallpaper background (e.g. clock). Fixes bug 6649988. The second half of the bug, the first half will be reissued as a new bug. Change-Id: I209c9038469e4133586a927c92ef64ae43fb937f
1 parent f958732 commit a803371

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,8 +1740,6 @@ int adjustWallpaperWindowsLocked() {
17401740
mWallpaperTarget = oldW;
17411741
foundW = oldW;
17421742
foundI = oldI;
1743-
mLowerWallpaperTarget = null;
1744-
mUpperWallpaperTarget = null;
17451743
}
17461744
// Now set the upper and lower wallpaper targets
17471745
// correctly, and make sure that we are positioning
@@ -3162,6 +3160,7 @@ private Animation createScaleUpAnimationLocked(int transit, boolean enter) {
31623160
set.addAnimation(scale);
31633161
alpha.setDuration(duration);
31643162
set.addAnimation(alpha);
3163+
set.setDetachWallpaper(true);
31653164
a = set;
31663165
} else {
31673166
a = createExitAnimationLocked(transit, duration);

0 commit comments

Comments
 (0)