From f34bfb4d4408ba29de1b84367cba538a69bfedcb Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 3 Jan 2015 20:11:59 -0800 Subject: Don't recycle cached unknown images --- src/github/daneren2005/dsub/util/ImageLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3