material-components / material-components/material-components-android
[BottomSheetDialog] ProtectionLayout gradient remains visible on BottomSheet dismiss
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** I'm trying to take advantage of new `ProtectionLayout` API, so I've bumped version to `1.14.0-alpha02` which adds `GradientProtection` support to `BottomSheetDialog`. I can confirm, that when using this version `GradientProtection` is present, however there is visual bug, when `GradientProtection` remains on screen for a moment when BottomSheet is dismissed. I'm using `BottomSheetDialogFragment`.
https://github.com/user-attachments/assets/a1d7155a-8d13-4821-9d2a-7fc6c6dd0366
**Expected behavior:** I expect Protection gradient to fade away on dismiss. Also how can I enable Protection to be visible when used with gesture navigation bar (now it's working with 3-button navigation bar only?
**Android API version:** API 29
**Material Library version:** 1.14.0-alpha02
**Device:** Samsung Galaxy Note 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.