Status Update
Comments
ma...@google.com <ma...@google.com>
lp...@google.com <lp...@google.com> #2
If a bottom sheet is in a half expanded state and recreated into a screen where half expanded isn't possible (because it isn't tall enough) it crashes with the same error.
This is also an issue in pre 1.4.0-alpha04, but the error message is "The initial value must have an associated anchor".
This is easily reproducible by having a bottom sheet with a height that in landscape has half expanded, but doesn't in portrait. When rotating with the sheet open it always crashes. This can be mitigated by disallowing the bottom sheet to be half expanded by creating the bottom sheet state with rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden, skipHalfExpanded = true)
za...@gmail.com <za...@gmail.com> #3
Thanks for the report. Do you have an isolated repro?
ap...@google.com <ap...@google.com> #4
You do - apologies, I missed that. We'll check it out! :)
Description
Jetpack Compose release version: 1.0.0-beta07 Android Studio Build: 7.1.0-alpha01
It seems that in some cases the new
RippleDrawable
-backed ripple implementation in beta07 crashes.I haven't figured out what the exact conditions required are to get the ripple to crash, but you should be able to reproduce the crash by checking out the compose-richtext repository from GitHub and running the sample app (there's only one app in the project).
zachklipp/repro-ripple-bug
branch of theThe stack trace starts as follows (full trace attached):