From a5ec7c59b7268ce220ba3c0455881d79b4899944 Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Thu, 23 Jun 2022 16:39:16 +0800 Subject: [PATCH] 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 --- .../systemui/shared/system/RemoteAnimationTargetCompat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/system/RemoteAnimationTargetCompat.java b/packages/SystemUI/shared/src/com/android/systemui/shared/system/RemoteAnimationTargetCompat.java index 4ce110bf7c471..8446890a1c8cf 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/system/RemoteAnimationTargetCompat.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/system/RemoteAnimationTargetCompat.java @@ -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());