Correct SHOW_WALLPAPER conflicts the definition of isTranslucent

isTranslucent means this window may reveal apps behinds, so when a
window declared to show wallpaper, it must be opaque.

Bug: 236926198
Test: enable shell transition, open an app, press home and verify
there will play depth animation.

Change-Id: I0bed51de9155fe8ce1c00f1a838a4483b47dd515
This commit is contained in:
wilsonshih
2022-06-23 16:39:16 +08:00
parent b692b42145
commit a5ec7c59b7

View File

@@ -203,8 +203,7 @@ public class RemoteAnimationTargetCompat {
// TODO: once we can properly sync transactions across process, then get rid of this leash.
leash = createLeash(info, change, order, t);
isTranslucent = (change.getFlags() & TransitionInfo.FLAG_TRANSLUCENT) != 0
|| (change.getFlags() & TransitionInfo.FLAG_SHOW_WALLPAPER) != 0;
isTranslucent = (change.getFlags() & TransitionInfo.FLAG_TRANSLUCENT) != 0;
clipRect = null;
position = null;
localBounds = new Rect(change.getEndAbsBounds());