From 64dfdce2c1d26c627ba5a8464ef53af8e7e209ec Mon Sep 17 00:00:00 2001 From: Andrew Cole Date: Mon, 4 Mar 2024 12:46:10 -0800 Subject: [PATCH] Removing Shrink Adaptive Icons This function is now obsolete and we can remove this and default to always shrinking non-adaptive (legacy) icons Test: AllAppsSearchImageTest Bug: 318867282 Flag: None Change-Id: I1ba1566e362c55eb04871a7515fdc76fbc689d60 --- src/com/android/launcher3/icons/IconCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/icons/IconCache.java b/src/com/android/launcher3/icons/IconCache.java index af704a88f0..329f71777e 100644 --- a/src/com/android/launcher3/icons/IconCache.java +++ b/src/com/android/launcher3/icons/IconCache.java @@ -572,7 +572,7 @@ public class IconCache extends BaseIconCache { try (LauncherIcons li = LauncherIcons.obtain(mContext)) { final BitmapInfo tempBitmap = li.createBadgedIconBitmap( mContext.getDrawable(widgetSection.mSectionDrawable), - new BaseIconFactory.IconOptions().setShrinkNonAdaptiveIcons(false)); + new BaseIconFactory.IconOptions()); mWidgetCategoryBitmapInfos.put(infoInOut.widgetCategory, tempBitmap); infoInOut.bitmap = getBadgedIcon(tempBitmap, infoInOut.user); } catch (Exception e) {