[com.google.android.material.bottomsheet] Expanded BottomSheetDialog shouldn't have top insets when it's in the bottom split screen
Description:
Expanded BottomSheetDialog shouldn't have top insets when it's in the bottom split screen.
Repro steps:
- Open app in portrait
- Open Recents
- Select "split screen"
- Press the button to open the BottomSheetDialog
- Double-tap on the handle between the screens ==> App moves to the bottom split screen. Extra top insets above the header.
Expected behavior: there wouldn't be top insets above the header.
This only occurs for expanded bottom sheets. This issue doesn't occur on Android 14. Note edge-to-edge was enforced on Android 15.
Sample app attached.
Android API version:
Android 15 (SDK 35)
Material Library version:
1.13.0-alpha06
Device:
Tested on Pixel Fold
android.view.Window.setStatusBarColor ,
The parameters for borderless design and window display settings have been deprecated in Android 15。Google Play keeps prompting this message。
com.google.android.material.bottomsheet.BottomSheetDialog.onCreate com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge com.google.android.material.sidesheet.SheetDialog.onCreate