Skip to content

Conversation

@Makisuo
Copy link

@Makisuo Makisuo commented Jan 5, 2026

The BottomSheetBehavior.halfExpandedRatio requires a value strictly between 0 and 1 (exclusive). When the editor allows setting height to 100%, the calculation would yield 1.0, causing an IllegalArgumentException.

This fix clamps the ratio to the valid range (0.01 to 0.99).

Changes in this pull request

Checklist

  • All unit tests pass.
  • All UI tests pass.
  • Demo project builds and runs.
  • I added/updated tests or detailed why my change isn't tested.
  • I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
  • I have run ktlint in the main directory and fixed any issues.
  • I have updated the SDK documentation as well as the online docs.
  • I have reviewed the contributing guide

claude added 2 commits January 5, 2026 10:56
The BottomSheetBehavior.halfExpandedRatio requires a value strictly
between 0 and 1 (exclusive). When the editor allows setting height to
100%, the calculation would yield 1.0, causing an IllegalArgumentException.

This fix clamps the ratio to the valid range (0.01 to 0.99).
@Makisuo Makisuo requested a review from ianrumac January 5, 2026 11:05
@ianrumac ianrumac merged commit 6d36e21 into develop Jan 6, 2026
1 check failed
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

Successfully merging this pull request may close these issues.

4 participants