Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

测试 AvatarView 代码时发现问题 #50

Open
taowu750 opened this issue Dec 21, 2017 · 1 comment
Open

测试 AvatarView 代码时发现问题 #50

taowu750 opened this issue Dec 21, 2017 · 1 comment

Comments

@taowu750
Copy link

在 AvatarView.java 的 getDrawableFrom() 方法中发现执行到以下代码会出错:
bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(),drawable.getIntrinsicHeight(),Bitmap.Config.ARGB_8888);
这个代码在运行时会抛出异常:
java.lang.IllegalArgumentException: width and height must be > 0

@liangfeidotme
Copy link
Owner

你可以修好提个MR给我

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants