material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.3k stars 3.06k forks source link

[BottomSheetDialogFragment] Top inset not applied after configuration change #2509

Closed Pittvandewitt closed 2 years ago

Pittvandewitt commented 2 years ago

Description: BottomSheetDialogFragment does not apply any top insets after a configuration change when the bottom sheet is expanded and laid out edge to edge. This causes content to be drawn behind the status bar. The top insets get applied only when the user starts scrolling the BottomSheet content.

Expected behavior: After a configuration change, the top insets for a BottomSheetDialogFragment should be applied directly.

Source code:
https://github.com/Pittvandewitt/bottomsheetdialogfragment-bug-report

Android API version: Tested on API 28 and up

Material Library version: 1.4.0 and up

Device: Device independent

Pittvandewitt commented 2 years ago

The issue seems to be similar to https://github.com/material-components/material-components-android/issues/2165

drchen commented 2 years ago

Yes. I think they are duplicate. Let me close this for now and move the discussion there.