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

[BottomSheet] Bottom Sheet expanding and then going to Half Expanded State

Open
#3,234 3 comments 0 reactions 0 assignees 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:**
A bit of an issue, when I started updating the version for Material to 1.6.0+, the bottom sheet has started behaving weirdly.
https://github.com/material-components/material-components-android/releases/tag/1.6.0
Before this version,
Lets say we have two bottom sheets A and B. If I go A-> B and go back I will find the A in Half Expanded state as it was/
But with increase in version, when I press back, it first expands fully and then go back to the same state i.e Half Expanded state.

**Expected behavior:**
When I go back to the previous sheet, it should not first expand and then collapse. but rather be in the state it was in.

**Material Library version:** 1.8.0

**Device:** Pixel 7

To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.

We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).

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 transition with two bottom sheets, A and B, using Material Library 1.8.0, then compare it with behavior before 1.6.0. Press back from B and verify that A returns directly to its previous half-expanded state without expanding fully first.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.