material-components / material-components/material-components-android

[BottomSheetDialog] ProtectionLayout gradient remains visible on BottomSheet dismiss

Open
#4,868 7 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug Widget: BottomSheet
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.