Cleaning up icon code.

- Changing long-press on homescreen to bring up wallpaper picker.

Change-Id: I854b1b7dc5a102e95853732d6e9a4fa298144650
This commit is contained in:
Winson Chung committed 2011-05-05 15:22:05 -07:00
1 parent fd6e4511b0
commit 4dbea7920a
5 files changed
+9 -23

No files matched your search

+3 -2
View File
@@ -19,6 +19,7 @@ package com.android.launcher2;
import com.android.launcher.R;
import android.animation.ObjectAnimator;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
@@ -174,8 +175,8 @@ public class PagedViewIcon extends CachedTextView implements Checkable {
public void applyFromResolveInfo(ResolveInfo info, PackageManager packageManager,
PagedViewIconCache cache, IconCache modelIconCache, boolean createHolographicOutlines) {
mIcon = Utilities.createIconBitmap(
modelIconCache.getFullResIcon(info, packageManager), mContext);
ComponentName cn = new ComponentName(info.activityInfo.packageName, info.activityInfo.name);
mIcon = modelIconCache.getIcon(cn, info);
setCompoundDrawablesWithIntrinsicBounds(null, new FastBitmapDrawable(mIcon), null, null);
setText(info.loadLabel(packageManager));
setTag(info);