Fixing issue where certain icons in the customization drawer were not being scaled down to size.
Change-Id: I5a14146cdd530f22119ced8ca8534ec899abcbdc
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java
index 0714a93..ff5ea49 100644
--- a/src/com/android/launcher2/PagedViewIcon.java
+++ b/src/com/android/launcher2/PagedViewIcon.java
@@ -110,9 +110,9 @@
mIconCacheKey = info;
mHolographicOutline = mIconCache.getOutline(mIconCacheKey);
- Drawable image = info.loadIcon(packageManager);
- image.setBounds(0, 0, image.getIntrinsicWidth(), image.getIntrinsicHeight());
- setCompoundDrawablesWithIntrinsicBounds(null, image, null, null);
+ Bitmap image = Utilities.createIconBitmap(info.loadIcon(packageManager), mContext);
+ setCompoundDrawablesWithIntrinsicBounds(null,
+ new FastBitmapDrawable(image), null, null);
setText(info.loadLabel(packageManager));
setTag(info);
}