setUri to null now clears the image bitmap.

This commit is contained in:
Panayot Cankov
2017-04-27 11:56:51 +03:00
parent 61a6397408
commit f5eb71a399

View File

@@ -181,6 +181,8 @@ public class ImageView extends android.widget.ImageView implements BitmapOwner {
if (mUri != null && fetcher != null) {
// Get the Bitmap from cache.
fetcher.loadImage(mUri, this, mDecodeWidth, mDecodeHeight, mUseCache, mAsync, mListener);
} else {
this.setImageBitmap(null);
}
}