aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/github/daneren2005/dsub/util/ImageLoader.java4
1 files 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 {