From db599b2d8e7a5ce1b6e092afb1b12c6db05ac18e Mon Sep 17 00:00:00 2001 From: Federico Baron Date: Thu, 9 Mar 2023 14:44:41 -0800 Subject: [PATCH] Fix bug where homescreen shows installation completed when it's technically still downloading and fix animation that repeats in apps with quick install Fix: 269702659 Test: Download an app that has a lighning next to the install text and verify that the animation plays smoothly and that it doesn't animate until we finish downloading completely. Change-Id: I11147444a85db01c75d63b5cdd09d1d911a28c75 --- src/com/android/launcher3/BubbleTextView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 3eb03edf13..80a8193379 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -717,7 +717,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, || info.hasPromiseIconUi() || (info.runtimeStatusFlags & FLAG_INSTALL_SESSION_ACTIVE) != 0 || (ENABLE_DOWNLOAD_APP_UX_V2.get() && icon != null)) { - updateProgressBarUi(icon); + updateProgressBarUi(info.getProgressLevel() == 100 ? icon : null); } } }