material-components-android: [BottomSheetDialog] Broken after last commit for edge to edge

Description: Edge to edge is broken with last commit

image

I’ve checked drawEdgeToEdge is properly set to true and WindowCompat.setDecorFitsSystemWindows(window, !drawEdgeToEdge) is properly called with false but this triggers the state shown above. The call should have made the window edgetoedge and the statusbar should have been taken in account via padding in the rest of the code.

Reverting that commit fix the issue

image

Expected behavior: The container should be edge to edge it is not.

Source code: Bug introduced by https://github.com/material-components/material-components-android/commit/2d3024ea1092b55d46e7785527853186e124d5aa

Minimal sample app repro:

Android API version: Android 12L + Androidx core 1.8.0

Material Library version: Snapshot

Device: P6 Pro last patches

Ping @drchen

To help us triage faster, please check to make sure you are using the latest version of the library.

We also happily accept pull requests.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Welcome to the joys of edge to edge 😃 Even more fun when dealing with samsung.

Anyway sorry for the delay, different time zone.

Nothing special as I’m starting fresh on the new M3 themes

parent="Theme.Material3.Light.NoActionBar" and

        <!-- Material mandatory -->
        <item name="emojiCompatEnabled">false</item>
        <item name="enableEdgeToEdge">true</item>

        <!-- Android mandatory -->
        <item name="layout_keyline">-1</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">true</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowSoftInputMode">adjustPan|stateAlwaysHidden</item>
        <item name="android:soundEffectsEnabled">false</item>

I’ll try to find some times next week to repro both things