diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-11-16 08:04:20 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-11-16 08:04:20 -0800 |
commit | b3ef65f64a23ee5eae626bd488c3afe3263aff43 (patch) | |
tree | 1b922331e707fa0e87a92123160104ca20036e61 /app/src/main | |
parent | afd7424305448076b6784d14340b2c9dc72a2644 (diff) | |
download | dsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.tar.gz dsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.tar.bz2 dsub-b3ef65f64a23ee5eae626bd488c3afe3263aff43.zip |
Fix getCachedImage returning a recycled bitmap
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/ImageLoader.java | 3 |
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; } |