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

Crash sometimes on orientation #66

Open
Vivecstel opened this issue Jan 16, 2021 · 0 comments
Open

Crash sometimes on orientation #66

Vivecstel opened this issue Jan 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Vivecstel
Copy link

Vivecstel commented Jan 16, 2021

Version used: Android 10
Devices/Android versions reproduced on: Xiaomi mi a3

When having 3 or buttons in linear layout on orientation i am getting:
IllegalArgumentException("width and height must be > 0") when Bitmap#createBitmap is called.
Note that the in FlatShape#updateShadowBitmap when
val w = bounds.width() val h = bounds.height()
both width and height can be negative and this is not handled.
in the sample i run the height was -16.

Note that wrapping the linear layout with nested scroll view is a workaround to avoid crash.

@Vivecstel Vivecstel added the bug Something isn't working label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant