Skip to content

[Catalog][BottomAppBar][BottomSheet][NavigationDrawer][SearchView][SideSheet][Predictive Back] state mismatch between bottom sheet and back callback after restarting activity #3575

@manabu-nakamura

Description

@manabu-nakamura

Description: The expanded bottom sheet is still expanded after restarting the activity (e.g. after rotating the device). But, the back callback is disabled and the bottom sheet will not detach from the left and right edges of the screen.
https://m3.material.io/components/bottom-sheets/guidelines#3d7735e2-73ea-4f3e-bd42-e70161fc1085

Similar things are happening in other demos (BottomSheetMainDemoFragment, NavigationDrawerDemoActivity, CustomNavigationDrawerDemoActivity, SearchMainDemoActivity, SearchRecyclerDemoActivity, and SideSheetMainDemoFragment) as well.

(before restarting activity)
Screenshot_20230913_171952
(after restarting activity)
Screenshot_20230913_172001

Expected behavior: The expanded bottom sheet is hidden or the back callback is enabled after restarting the activity (e.g. after rotating the device).

Minimal sample app repro: Catalog app

Android API version: 34

Material Library version: 1.11.0-alpha02

Device: Emulator 32.1.15 (API 34)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions