aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}