summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewIcon.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-09-30 12:07:45 -0700
committerWinson Chung <winsonc@google.com>2010-09-30 12:07:45 -0700
commitc1f48b973197253e314703101f65c1f5e3b33380 (patch)
tree0f9b738f7fd9e3f6c5ff6a253555c96a8ed8f9b6 /src/com/android/launcher2/PagedViewIcon.java
parent845ba3b17b83a2b11d79c6fb076cf96ab4a737df (diff)
downloadandroid_packages_apps_Trebuchet-c1f48b973197253e314703101f65c1f5e3b33380.tar.gz
android_packages_apps_Trebuchet-c1f48b973197253e314703101f65c1f5e3b33380.tar.bz2
android_packages_apps_Trebuchet-c1f48b973197253e314703101f65c1f5e3b33380.zip
Fixing issue where certain icons in the customization drawer were not being scaled down to size.
Change-Id: I5a14146cdd530f22119ced8ca8534ec899abcbdc
Diffstat (limited to 'src/com/android/launcher2/PagedViewIcon.java')
-rw-r--r--src/com/android/launcher2/PagedViewIcon.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java
index 0714a933c..ff5ea496b 100644
--- a/src/com/android/launcher2/PagedViewIcon.java
+++ b/src/com/android/launcher2/PagedViewIcon.java
@@ -110,9 +110,9 @@ public class PagedViewIcon extends TextView implements Checkable {
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);
}