Skip to content

Commit e0df59b

Browse files
committed
Merge pull request nostra13#599 from Ray-Ni/master
Not use bitmap from memory cache if the bitmap is recycled
2 parents 5221b42 + fec71ee commit e0df59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/com/nostra13/universalimageloader/core/LoadAndDisplayImageTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void run() {
131131
checkTaskNotActual();
132132

133133
bmp = configuration.memoryCache.get(memoryCacheKey);
134-
if (bmp == null) {
134+
if (bmp == null || bmp.isRecycled()) {
135135
bmp = tryLoadBitmap();
136136
if (bmp == null) return; // listener callback already was fired
137137

0 commit comments

Comments
 (0)