mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Improve "isActiveArchive" check by moving it a bit earlier into the
method. Apply progress level doesn't need to be called unless the app is actively being unarchived. Previously this was fixed by adding a check directly in "setIsDisabled()" which is not quite the right place (we can exit earlier). Bug: 326218355 Test: manual Flag: ACONFIG com.android.launcher3.enable_support_for_archiving TRUNKFOOD Change-Id: Ia12013dbcec2d40413a6cf819f8d1787b815adc1
This commit is contained in:
@@ -916,7 +916,8 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
/** Applies the given progress level to the this icon's progress bar. */
|
||||
@Nullable
|
||||
public PreloadIconDrawable applyProgressLevel() {
|
||||
if (!(getTag() instanceof ItemInfoWithIcon)) {
|
||||
if (!(getTag() instanceof ItemInfoWithIcon)
|
||||
|| !((ItemInfoWithIcon) getTag()).isActiveArchive()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -973,6 +974,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
return info.isDisabled() || info.isPendingDownload();
|
||||
}
|
||||
|
||||
|
||||
public void applyDotState(ItemInfo itemInfo, boolean animate) {
|
||||
if (mIcon instanceof FastBitmapDrawable) {
|
||||
boolean wasDotted = mDotInfo != null;
|
||||
|
||||
Reference in New Issue
Block a user