Skip to content
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

width and height must be > 0 #171

Open
MohammadRezaei92 opened this issue Nov 7, 2020 · 2 comments
Open

width and height must be > 0 #171

MohammadRezaei92 opened this issue Nov 7, 2020 · 2 comments

Comments

@MohammadRezaei92
Copy link

br.com.simplepass.loadingbutton.animatedDrawables.CircularRevealAnimatedDrawable$readyImage$2.invoke (CircularRevealAnimatedDrawable.java:38)
br.com.simplepass.loadingbutton.animatedDrawables.CircularRevealAnimatedDrawable$readyImage$2.invoke (CircularRevealAnimatedDrawable.java:23)
kotlin.SynchronizedLazyImpl.getValue (SynchronizedLazyImpl.java:74)
br.com.simplepass.loadingbutton.animatedDrawables.CircularRevealAnimatedDrawable.getReadyImage (CircularRevealAnimatedDrawable.java:6)
br.com.simplepass.loadingbutton.animatedDrawables.CircularRevealAnimatedDrawable.draw (CircularRevealAnimatedDrawable.java:106)
br.com.simplepass.loadingbutton.customViews.CircularProgressButton.drawDoneAnimation (CircularProgressButton.java:121)
br.com.simplepass.loadingbutton.presentation.ProgressButtonPresenter.onDraw (ProgressButtonPresenter.java:67)
br.com.simplepass.loadingbutton.customViews.CircularProgressButton.onDraw (CircularProgressButton.java:179)

@leandroBorgesFerreira
Copy link
Owner

Hello hello. Could you explain more what is the problem?

@MohammadRezaei92
Copy link
Author

Hello hello. Could you explain more what is the problem?

My app crash when user click on the button and this is a stack-trace

java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1148)
at android.graphics.Bitmap.createBitmap(Bitmap.java:987)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:842)
at z.a.a.a.a.g$g.invoke(SourceFile:1)
at f0.j.getValue(SourceFile:5)
at z.a.a.a.a.g.draw(SourceFile:6)
at br.com.simplepass.loadingbutton.customViews.CircularProgressButton.o(SourceFile:1)
at br.com.simplepass.loadingbutton.customViews.CircularProgressButton.o(SourceFile:1)
at z.a.a.a.c.b.a(SourceFile:5)
at br.com.simplepass.loadingbutton.customViews.CircularProgressButton.onDraw(SourceFile:2)
at br.com.simplepass.loadingbutton.customViews.CircularProgressButton.onDraw(SourceFile:2)

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

No branches or pull requests

2 participants