summaryrefslogtreecommitdiff
path: root/quickstep/src
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2021-06-30 17:09:46 -0700
committerJonathan Miranda <jonmiranda@google.com>2021-07-01 00:11:41 +0000
commit17cc821c28cfa6b83a779dbcf39511e516bee91f (patch)
tree34b932cb254ead5ce8ed3f43f4818a89d0770382 /quickstep/src
parentbf60673bbbc08002688b14e1b856eec925895afd (diff)
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
Diffstat (limited to 'quickstep/src')
-rw-r--r--quickstep/src/com/android/launcher3/QuickstepTransitionManager.java3
1 files changed, 2 insertions, 1 deletions
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;
}