Skip to content

Commit 1b58d4d

Browse files
committed
ImageView.setImageBitmap() -> setImageDrawable() to reset view
Fixed Issue nostra13#260
1 parent fc54a52 commit 1b58d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public void displayImage(String uri, ImageView imageView, DisplayImageOptions op
195195
if (options.shouldShowImageForEmptyUri()) {
196196
imageView.setImageResource(options.getImageForEmptyUri());
197197
} else {
198-
imageView.setImageBitmap(null);
198+
imageView.setImageDrawable(null);
199199
}
200200
listener.onLoadingComplete(uri, imageView, null);
201201
return;
@@ -225,7 +225,7 @@ public void displayImage(String uri, ImageView imageView, DisplayImageOptions op
225225
imageView.setImageResource(options.getStubImage());
226226
} else {
227227
if (options.isResetViewBeforeLoading()) {
228-
imageView.setImageBitmap(null);
228+
imageView.setImageDrawable(null);
229229
}
230230
}
231231

0 commit comments

Comments
 (0)