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

[BottomSheetBehavior] BottomSheetBehavior doesn't respect system-wide animation settings

Open
#983 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: BottomSheet
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** `BottomSheetBehavior` doesn't respect system-wide animation settings, like animation duration scale. Instead, it always performs an animation when changing between states. This is particularly annoying for UI tests, which typically are run without animations and don't play well with widgets taking hundreds of milliseconds to settle.

**Material Library version:** 1.1.0-beta01, although I believe I haven't seen this mentioned in changelogs

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

Start by reproducing the issue with BottomSheetBehavior while the system animation duration scale is disabled, then trace the state-change animation path in the Material Components Android source. Done means state changes no longer run visible animations when system-wide animations are disabled, including the UI-test scenario described.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.