Skip to content

BottomSheetDialog extra white space when navigation mode is changed (edge to edge) #4749

@Mesharp01

Description

@Mesharp01

Description:
When updated our app to handle edge to edge with API 35, I noticed while testing a BottomSheetDialog that when navigation mode is updated (ex: from 3 button nav mode -> gesture nav mode) mid session, there is extra white space that is rendered along the bottom of the sheet. When switching from 3 button nav mode to gesture nav mode, there is white space, and a line where the 3 button nav bar used to be. This causes extra white space on our bottom sheets.

Extra white space: gesture mode to 3 button nav mode Extra white space: 3 button nav mode to gesture mode
Image Image

Expected behavior:
When switching between nav modes, the bottom sheet should respond with the correct insets for the nav bar.

Source code:
BottomSheet launched using a BottomSheetDialogFragment

Minimal sample app repro:
N/A

Android API version:
API 35

Material Library version:
1.12.0

Device:
Encountered on emulators and physical devices

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions