aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-03 20:11:59 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-03 20:11:59 -0800
commitf34bfb4d4408ba29de1b84367cba538a69bfedcb (patch)
tree75da441da27eb1694532b59288dfa70231f07c69
parent1023f1350dedf2d9f6b5a40c0acb156b3602cd58 (diff)
downloaddsub-f34bfb4d4408ba29de1b84367cba538a69bfedcb.tar.gz
dsub-f34bfb4d4408ba29de1b84367cba538a69bfedcb.tar.bz2
dsub-f34bfb4d4408ba29de1b84367cba538a69bfedcb.zip
Don't recycle cached unknown images
-rw-r--r--src/github/daneren2005/dsub/util/ImageLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java
index 48ff39ca..be3f7d1b 100644
--- a/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -79,7 +79,7 @@ public class ImageLoader {
@Override
protected void entryRemoved(boolean evicted, String key, Bitmap oldBitmap, Bitmap newBitmap) {
if(evicted) {
- if(oldBitmap != nowPlaying) {
+ if(oldBitmap != nowPlaying && key.indexOf("unknown") == -1) {
if(sizeOf("", oldBitmap) > 500) {
oldBitmap.recycle();
}