From b75d545f462f9aa9b71c02f6b1e261a851a8ec74 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 28 Nov 2013 22:57:57 -0800 Subject: Fix deprecated error --- src/github/daneren2005/dsub/util/ImageLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java index 6e94e0a3..42143d3a 100644 --- a/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/src/github/daneren2005/dsub/util/ImageLoader.java @@ -75,7 +75,7 @@ public class ImageLoader implements Runnable { protected void entryRemoved(boolean evicted, String key, Bitmap oldBitmap, Bitmap newBitmap) { if(evicted) { if(oldBitmap != nowPlaying) { - oldBitmap.recycle(); + // oldBitmap.recycle(); } else { cache.put(key, oldBitmap); } @@ -170,7 +170,7 @@ public class ImageLoader implements Runnable { } else { emptyImage = Bitmap.createBitmap(imageSizeDefault, imageSizeDefault, Bitmap.Config.ARGB_8888); } - existingDrawable = new BitmapDrawable(emptyImage); + existingDrawable = new BitmapDrawable(context.getResources(), emptyImage); } else { // Try to get rid of old transitions try { -- cgit v1.2.3