aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-28 22:57:57 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-28 22:57:57 -0800
commitb75d545f462f9aa9b71c02f6b1e261a851a8ec74 (patch)
tree1c7d526bd17d007a79cb564e08ce79d71fe40a7f /src
parentb0f5db367137b823155fe9e1cdca9d89bc8cc26a (diff)
downloaddsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.tar.gz
dsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.tar.bz2
dsub-b75d545f462f9aa9b71c02f6b1e261a851a8ec74.zip
Fix deprecated error
Diffstat (limited to 'src')
-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 {