diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-03 20:11:59 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-03 20:11:59 -0800 |
commit | f34bfb4d4408ba29de1b84367cba538a69bfedcb (patch) | |
tree | 75da441da27eb1694532b59288dfa70231f07c69 | |
parent | 1023f1350dedf2d9f6b5a40c0acb156b3602cd58 (diff) | |
download | dsub-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.java | 2 |
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(); } |