Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TopAppBar] Fix app:expanded=false not working
When an AppBarLayout is loaded, it will load the attribute and set up a non-forcing pending action. However when it's measured, the current scroll state will be saved and restored, which will override the non-forcing pending action. This behavior is incorrect - if there's a pending action, we shouldn't restore the scrolling state because it's meant to be changed. Resolves #2629 PiperOrigin-RevId: 440960254 (cherry picked from commit 05be1b9)
- Loading branch information