aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-11-16 08:04:20 -0800
committerScott Jackson <daneren2005@gmail.com>2015-11-16 08:04:20 -0800
commitb3ef65f64a23ee5eae626bd488c3afe3263aff43 (patch)
tree1b922331e707fa0e87a92123160104ca20036e61
parentafd7424305448076b6784d14340b2c9dc72a2644 (diff)
downloaddsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.tar.gz
dsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.tar.bz2
dsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.zip
Fix getCachedImage returning a recycled bitmap
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java b/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java
index c10158d2..4ba72960 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java
@@ -201,6 +201,9 @@ public class ImageLoader {
cache.get(key);
}
+ if(bitmap != null && bitmap.isRecycled()) {
+ bitmap = null;
+ }
return bitmap;
}