From 31234d811dc69c159757a6890852eb0f53d559a9 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 10 Nov 2011 15:15:15 -0800 Subject: fix build --- src/com/android/launcher2/AppsCustomizePagedView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 924349daf..8ef758d55 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -1018,6 +1018,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen int hoffset = (int) (bitmapWidth / 2 - mAppIconSize * iconScale / 2); int yoffset = (int) (bitmapHeight / 2 - mAppIconSize * iconScale / 2); if (info.icon > 0) icon = mIconCache.getFullResIcon(packageName, info.icon); + Resources resources = mLauncher.getResources(); if (icon == null) icon = resources.getDrawable(R.drawable.ic_launcher_application); renderDrawableToBitmap(icon, preview, hoffset, yoffset, -- cgit v1.2.3