-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when setting null drawable #171
Labels
Comments
same here, I already try check null before using zoomImageView.setImageBitmap but the error still occur? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Setting a
null
drawable strangely causes theDrawables without intrinsic dimensions (such as a solid color) are not supported
exception to trigger. It seems like passing anull
value to thesetImageDrawable
function actually results in setting aBitmapDrawable
, see screenshot below.To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
ZoomImageView
zoomImageView.setImageBitmap(null)
Expected behavior
Not sure, but I guess it should be possible to set a
null
image (simply show nothing at all).Screenshots
Logs
The text was updated successfully, but these errors were encountered: