From 476be7bcd499cb52eac018b3a0f23c6a48924a63 Mon Sep 17 00:00:00 2001 From: Jakob Schneider Date: Thu, 4 Apr 2024 10:32:27 +0000 Subject: [PATCH] Fix issue where progress around icons is not shown Bug: 332777576 Change-Id: Id53d0e35c38311e6ef65146321c6aa523c8820da --- src/com/android/launcher3/BubbleTextView.java | 2 +- src/com/android/launcher3/model/data/ItemInfoWithIcon.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 4c8ed159fc..83236d14ff 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -912,7 +912,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, @Nullable public PreloadIconDrawable applyProgressLevel() { if (!(getTag() instanceof ItemInfoWithIcon) - || !((ItemInfoWithIcon) getTag()).isActiveArchive()) { + || ((ItemInfoWithIcon) getTag()).isInactiveArchive()) { return null; } diff --git a/src/com/android/launcher3/model/data/ItemInfoWithIcon.java b/src/com/android/launcher3/model/data/ItemInfoWithIcon.java index 9fbc6bf109..be3aa101ac 100644 --- a/src/com/android/launcher3/model/data/ItemInfoWithIcon.java +++ b/src/com/android/launcher3/model/data/ItemInfoWithIcon.java @@ -168,9 +168,9 @@ public abstract class ItemInfoWithIcon extends ItemInfo { return (runtimeStatusFlags & FLAG_ARCHIVED) != 0; } - /** Returns true if the app is archived and has an active install session. */ - public boolean isActiveArchive() { - return isArchived() && (runtimeStatusFlags & FLAG_INSTALL_SESSION_ACTIVE) != 0; + /** Returns true if the app is archived and doesn't have an active install session. */ + public boolean isInactiveArchive() { + return isArchived() && (runtimeStatusFlags & FLAG_INSTALL_SESSION_ACTIVE) == 0; } /**