diff options
Diffstat (limited to 'src/com/android/launcher3/graphics/DrawableFactory.java')
-rw-r--r-- | src/com/android/launcher3/graphics/DrawableFactory.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/launcher3/graphics/DrawableFactory.java b/src/com/android/launcher3/graphics/DrawableFactory.java index 371479b36..32d9e4145 100644 --- a/src/com/android/launcher3/graphics/DrawableFactory.java +++ b/src/com/android/launcher3/graphics/DrawableFactory.java @@ -31,7 +31,7 @@ import android.support.annotation.UiThread; import android.util.ArrayMap; import android.util.Log; import com.android.launcher3.FastBitmapDrawable; -import com.android.launcher3.ItemInfo; +import com.android.launcher3.ItemInfoWithIcon; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.allapps.AllAppsBackgroundDrawable; @@ -64,18 +64,18 @@ public class DrawableFactory { /** * Returns a FastBitmapDrawable with the icon. */ - public FastBitmapDrawable newIcon(Bitmap icon, ItemInfo info) { - return new FastBitmapDrawable(icon); + public FastBitmapDrawable newIcon(ItemInfoWithIcon info) { + return new FastBitmapDrawable(info); } /** * Returns a FastBitmapDrawable with the icon. */ - public PreloadIconDrawable newPendingIcon(Bitmap icon, Context context) { + public PreloadIconDrawable newPendingIcon(ItemInfoWithIcon info, Context context) { if (mPreloadProgressPath == null) { mPreloadProgressPath = getPreloadProgressPath(context); } - return new PreloadIconDrawable(icon, mPreloadProgressPath, context); + return new PreloadIconDrawable(info, mPreloadProgressPath, context); } |