Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5ec7c59 authored by wilsonshih's avatar wilsonshih
Browse files

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
parent b692b421
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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());