Project demonstrates BottomSheet issue that was introduced in Material Components 1.4.0 release
https://github.com/material-components/material-components-android/releases/tag/1.4.0
Issue: material-components/material-components-android#2358
- Rotate device to landscape (screen width should be more than 640dp – see
material_bottom_sheet_max_width
dimen from material-components resources). - Press the button
- Roate device back to portrait mode.
BottomSheet width is invalidated and fit the screen even if activity is not recreated on orientation change.
BottomSheet width doesn't change, its content is clipped.