Merge pull request #96 from NativeScript/set-uri-clear-bitmap

setUri to null now clears the image bitmap.
This commit is contained in:
Panayot Cankov
2017-04-28 10:17:03 +03:00
committed by GitHub

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);
}
}