mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #96 from NativeScript/set-uri-clear-bitmap
setUri to null now clears the image bitmap.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user