Fixed
Status Update
Comments
os...@google.com <os...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 700259f0afe267dfe78b93db932a3cfd827a119d
Author: Sherry Hu <shuanghu@google.com>
Date: Mon May 10 14:23:09 2021
Add transition motion between fold and unfold.
Bug: 186211031
Test: manual
Change-Id: Id60f07311eca2d94ef91dc28ae45823a475160b4
M slidingpanelayout/slidingpanelayout/build.gradle
M slidingpanelayout/slidingpanelayout/src/androidTest/java/androidx/slidingpanelayout/widget/FoldTest.kt
M slidingpanelayout/slidingpanelayout/src/main/java/androidx/slidingpanelayout/widget/SlidingPaneLayout.java
https://android-review.googlesource.com/1702066
Branch: androidx-main
commit 700259f0afe267dfe78b93db932a3cfd827a119d
Author: Sherry Hu <shuanghu@google.com>
Date: Mon May 10 14:23:09 2021
Add transition motion between fold and unfold.
Bug: 186211031
Test: manual
Change-Id: Id60f07311eca2d94ef91dc28ae45823a475160b4
M slidingpanelayout/slidingpanelayout/build.gradle
M slidingpanelayout/slidingpanelayout/src/androidTest/java/androidx/slidingpanelayout/widget/FoldTest.kt
M slidingpanelayout/slidingpanelayout/src/main/java/androidx/slidingpanelayout/widget/SlidingPaneLayout.java
os...@google.com <os...@google.com> #3
Thanks for the thorough report, we've identified a fix and we'll try to get the regression fixed on the stable branch.
Description
Jetpack Compose version: 1.7.3
Jetpack Compose component used:
Modifer.animateContentSize()
Android Studio Build: #AI-242.21829.142.2421.12409432 (Ladybug | 2024.2.1)
Kotlin version: 2.0.20
I have been using the
ModalNavigationDrawer
component in a Compose TV app since last year (Compose v1.6.*). However, after upgrading the Compose dependencies to version 1.7.3, I noticed a strange behavior in the open/close animation of the drawer. Upon further investigation, I discovered that the issue only occurs in RTL layout direction, while everything works fine in LTR direction.After comparing the differences with the previous version and modifying the this issue and believe it has been present since then.
ModalNavigationDrawer
component code, I found that the problem lies in theanimateContentSize()
modifier within theModalNavigationDrawer
source code. It seems to be related to thealignment
argument added to theSizeAnimationModifierNode
since the last Compose version I was using. I foundSteps to Reproduce or Code Sample to Reproduce:
Use
ModalNavigationDrawer
in RTL layout direction in a Compose TV application with Compose Animation version 1.7.3. Open and close the drawer to observe the awkward animation behavior.