From 17cc821c28cfa6b83a779dbcf39511e516bee91f Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Wed, 30 Jun 2021 17:09:46 -0700 Subject: [PATCH] Fix bug where app icon is gone for first frame on cold start. We need the icon to be full alpha during the init pass, then when the actual animation starts, we can swap the icon with the window (splash screen that draws the icon). Bug: 192366079 Test: slow down window animations check no empty frame on cold start app launch check no empty frame on warm start app launch Change-Id: I16a1779e5252d8e88bc3c408e1dc40b264fe4cf4 --- .../src/com/android/launcher3/QuickstepTransitionManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index 6163447482..bd7a4780b1 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -725,7 +725,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener floatingIconBounds.bottom += offsetY; if (initOnly) { - floatingView.update(mIconAlpha.value, 255, floatingIconBounds, percent, 0f, + // For the init pass, we want full alpha since the window is not yet ready. + floatingView.update(1f, 255, floatingIconBounds, percent, 0f, mWindowRadius.value * scale, true /* isOpening */); return; }