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
This commit is contained in:
Federico Baron
2023-03-09 14:44:41 -08:00
parent f1a0bd61f4
commit db599b2d8e

View File

@@ -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);
}
}
}