From 9589916418d8892fcd99b3abb9770ae83ebec7d8 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 27 Mar 2019 16:03:06 -0700 Subject: ShortcutInfo renamed to WorkspaceItemInfo Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d --- src/com/android/launcher3/BubbleTextView.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/com/android/launcher3/BubbleTextView.java') diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index d75006e89..3611ad47e 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -215,11 +215,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, mDotScaleAnim.start(); } - public void applyFromShortcutInfo(ShortcutInfo info) { - applyFromShortcutInfo(info, false); + public void applyFromWorkspaceItem(WorkspaceItemInfo info) { + applyFromWorkspaceItem(info, false); } - public void applyFromShortcutInfo(ShortcutInfo info, boolean promiseStateChanged) { + public void applyFromWorkspaceItem(WorkspaceItemInfo info, boolean promiseStateChanged) { applyIconAndLabel(info); setTag(info); if (promiseStateChanged || (info.hasPromiseIconUi())) { @@ -232,7 +232,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, public void applyFromApplicationInfo(AppInfo info) { applyIconAndLabel(info); - // We don't need to check the info since it's not a ShortcutInfo + // We don't need to check the info since it's not a WorkspaceItemInfo super.setTag(info); // Verify high res immediately @@ -247,7 +247,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, public void applyFromPackageItemInfo(PackageItemInfo info) { applyIconAndLabel(info); - // We don't need to check the info since it's not a ShortcutInfo + // We don't need to check the info since it's not a WorkspaceItemInfo super.setTag(info); // Verify high res immediately @@ -491,11 +491,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } public void applyPromiseState(boolean promiseStateChanged) { - if (getTag() instanceof ShortcutInfo) { - ShortcutInfo info = (ShortcutInfo) getTag(); + if (getTag() instanceof WorkspaceItemInfo) { + WorkspaceItemInfo info = (WorkspaceItemInfo) getTag(); final boolean isPromise = info.hasPromiseIconUi(); final int progressLevel = isPromise ? - ((info.hasStatusFlag(ShortcutInfo.FLAG_INSTALL_SESSION_ACTIVE) ? + ((info.hasStatusFlag(WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE) ? info.getInstallProgress() : 0)) : 100; PreloadIconDrawable preloadDrawable = applyProgressLevel(progressLevel); @@ -619,8 +619,8 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, if (info instanceof AppInfo) { applyFromApplicationInfo((AppInfo) info); - } else if (info instanceof ShortcutInfo) { - applyFromShortcutInfo((ShortcutInfo) info); + } else if (info instanceof WorkspaceItemInfo) { + applyFromWorkspaceItem((WorkspaceItemInfo) info); mActivity.invalidateParent(info); } else if (info instanceof PackageItemInfo) { applyFromPackageItemInfo((PackageItemInfo) info); -- cgit v1.2.3