Requesting ApplicationInfo in cached object
Bug: 363324203 Test: Presubmit Flag: EXEMPT refactor Change-Id: I92f3d3ed8c267b895dc439ba1f01eb67d7f63965
This commit is contained in:
@@ -83,8 +83,8 @@ import androidx.core.graphics.ColorUtils;
|
||||
import com.android.launcher3.dragndrop.FolderAdaptiveIcon;
|
||||
import com.android.launcher3.graphics.TintedDrawableSpan;
|
||||
import com.android.launcher3.icons.BitmapInfo;
|
||||
import com.android.launcher3.icons.CacheableShortcutInfo;
|
||||
import com.android.launcher3.icons.LauncherIcons;
|
||||
import com.android.launcher3.icons.ShortcutCachingLogic;
|
||||
import com.android.launcher3.icons.ThemedIconDrawable;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.ItemInfoWithIcon;
|
||||
@@ -635,7 +635,7 @@ public final class Utilities {
|
||||
return null;
|
||||
} else {
|
||||
ShortcutInfo si = siList.get(0);
|
||||
mainIcon = ShortcutCachingLogic.getIcon(context, si,
|
||||
mainIcon = CacheableShortcutInfo.getIcon(context, si,
|
||||
appState.getInvariantDeviceProfile().fillResIconDpi);
|
||||
// Only fetch badge if the icon is on workspace
|
||||
if (info.id != ItemInfo.NO_ID && badge == null) {
|
||||
|
||||
Reference in New Issue
Block a user