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

[Catalog][BottomSheet] foreground color of status bar changes if bottom sheet is opened multiple times

Open
#3,940 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** The foreground color of the status bar changes if the bottom sheet is opened multiple times.
(first time)
![Screenshot_20231219_123457](https://github.com/material-components/material-components-android/assets/71050561/7034ef6a-e551-453a-887c-0f9be7cba04f)
(second time)
![Screenshot_20231219_123508](https://github.com/material-components/material-components-android/assets/71050561/2d7caf1a-e189-4aaa-adf2-4637d688b9d3)

**Expected behavior:** The foreground color of the status bar doesn't change even if the bottom sheet is opened multiple times. I think it's better to use BottomSheetDialogFragment... (#3600)

**Minimal sample app repro:** Catalog app

**Android API version:** 34

**Material Library version:** 1.12.0-alpha02

**Device:** Emulator 32.1.15 (API 32)

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.

Research direction

Reproduce the issue in the Catalog app on the reported Android API and inspect the BottomSheet opening lifecycle, especially how the status bar foreground color is handled across repeated opens. Done means repeated openings leave the status bar foreground color unchanged; no specific source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.