diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-11-28 22:57:57 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-11-28 22:57:57 -0800 |
commit | b75d545f462f9aa9b71c02f6b1e261a851a8ec74 (patch) | |
tree | 1c7d526bd17d007a79cb564e08ce79d71fe40a7f | |
parent | b0f5db367137b823155fe9e1cdca9d89bc8cc26a (diff) | |
download | dsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.tar.gz dsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.tar.bz2 dsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.zip |
Fix deprecated error
-rw-r--r-- | src/github/daneren2005/dsub/util/ImageLoader.java | 4 |
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 { |