Fixed
Status Update
Comments
os...@google.com <os...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 23a7d960caf43390a554700d3c56ada189a9d10e
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Mon Aug 10 15:11:36 2020
IconButton / IconToggleButton API scrub
Test: ./gradlew updateApi
Bug: b/161809385
Bug: b/161807956
Relnote: "Adds enabled parameter to IconButton, and reorders parameters in IconToggleButton"
Change-Id: I0a9419b1a631cadad451395302ad87b7f9214f96
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
https://android-review.googlesource.com/1394868
Branch: androidx-master-dev
commit 23a7d960caf43390a554700d3c56ada189a9d10e
Author: Louis Pullen-Freilich <lpf@google.com>
Date: Mon Aug 10 15:11:36 2020
IconButton / IconToggleButton API scrub
Test: ./gradlew updateApi
Bug:
Bug:
Relnote: "Adds enabled parameter to IconButton, and reorders parameters in IconToggleButton"
Change-Id: I0a9419b1a631cadad451395302ad87b7f9214f96
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/IconButton.kt
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.