From 4f5c7f6254b624ac7d6c27038a99bdf4bc3197ff Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Wed, 4 Sep 2024 09:32:41 +0000 Subject: [PATCH] Ensure the scrim layer above home task & wallpaper. Sepcify a positive number which must larger than task layer, to ensure the scrim layer must occludes home task and wallpaper. Otherwise any reparent transaction without specify layer could affect the visual order. Flag: EXEMPT bugfix Bug: 363927522 Test: verify the scrim layer above home and wallpaper while playing back-to-home animation. Change-Id: I558e29e0ebe72b8efb42cacc9cafd7869b09a40e --- .../android/quickstep/LauncherBackAnimationController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java b/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java index b720382597..a4ee3dd6a6 100644 --- a/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java +++ b/quickstep/src/com/android/quickstep/LauncherBackAnimationController.java @@ -341,7 +341,9 @@ public class LauncherBackAnimationController { mTransaction .setColor(mScrimLayer, colorComponents) .setAlpha(mScrimLayer, mScrimAlpha) - .show(mScrimLayer); + .show(mScrimLayer) + // Ensure the scrim layer occludes opening task & wallpaper + .setLayer(mScrimLayer, 1000); } void removeScrimLayer() {