Fixed
Status Update
Comments
jb...@google.com <jb...@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
ti...@google.com <ti...@google.com> #3
Indeed Crossfade needs the same support. Thanks for bringing that up. :)
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 4b91a7fe67a0a791829b42dbccb4e80f7beaaf74
Author: Doris Liu <tianliu@google.com>
Date: Sun Oct 03 20:03:14 2021
Support custom keys in AnimatedContent
This CL adds support for custom keys to be specified for
the target states in AnimatedContent. When different target
states share the same key, there will be no animation switching
between them.
Bug: 197907070
Test: Included
RelNote: "AnimatedContent now supports custom keys so that
content can be saved and restored when using rememberSaveable."
Change-Id: I5c81a70dd1e53a0076f60f32b8ccd615b7b09248
A compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimatedContentWithContentKeyDemo.kt
M compose/animation/animation/api/public_plus_experimental_current.txt
M compose/animation/animation/src/androidAndroidTest/kotlin/androidx/compose/animation/AnimatedContentTest.kt
M compose/animation/animation/src/commonMain/kotlin/androidx/compose/animation/AnimatedContent.kt
M compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimationDemos.kt
https://android-review.googlesource.com/1856567
Branch: androidx-main
commit 4b91a7fe67a0a791829b42dbccb4e80f7beaaf74
Author: Doris Liu <tianliu@google.com>
Date: Sun Oct 03 20:03:14 2021
Support custom keys in AnimatedContent
This CL adds support for custom keys to be specified for
the target states in AnimatedContent. When different target
states share the same key, there will be no animation switching
between them.
Bug: 197907070
Test: Included
RelNote: "AnimatedContent now supports custom keys so that
content can be saved and restored when using rememberSaveable."
Change-Id: I5c81a70dd1e53a0076f60f32b8ccd615b7b09248
A compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimatedContentWithContentKeyDemo.kt
M compose/animation/animation/api/public_plus_experimental_current.txt
M compose/animation/animation/src/androidAndroidTest/kotlin/androidx/compose/animation/AnimatedContentTest.kt
M compose/animation/animation/src/commonMain/kotlin/androidx/compose/animation/AnimatedContent.kt
M compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimationDemos.kt
ti...@google.com <ti...@google.com> #5
The CL above provides custom key support for AnimatedContent. The support for Crossfade per requested in #2 will be addressed in a separate CL.
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit 0976f7fdea12b12d1ea619402a512a02b24a4db6
Author: Doris Liu <tianliu@google.com>
Date: Thu Oct 14 13:13:58 2021
Support contentKey in Crossfade
RelNote: "New support for contentKey in Crossfade.
ContentKey will be used for equality check by animation system.
Therefore custom diffing on states can be achieved via specifying
appropriate contentKey for different states.
ConentKey will also be used as the key for save & restore content.
"
Fixes: 197907070
Test: Included
Change-Id: I2e055c2b42736633b544b653e9815255578e7169
M compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/CrossfadeDemo.kt
M compose/animation/animation/src/commonMain/kotlin/androidx/compose/animation/Crossfade.kt
M compose/animation/animation/api/public_plus_experimental_current.txt
M compose/animation/animation/api/public_plus_experimental_1.1.0-beta03.txt
M compose/animation/animation/src/androidAndroidTest/kotlin/androidx/compose/animation/CrossfadeTest.kt
https://android-review.googlesource.com/1880629
Branch: androidx-main
commit 0976f7fdea12b12d1ea619402a512a02b24a4db6
Author: Doris Liu <tianliu@google.com>
Date: Thu Oct 14 13:13:58 2021
Support contentKey in Crossfade
RelNote: "New support for contentKey in Crossfade.
ContentKey will be used for equality check by animation system.
Therefore custom diffing on states can be achieved via specifying
appropriate contentKey for different states.
ConentKey will also be used as the key for save & restore content.
"
Fixes: 197907070
Test: Included
Change-Id: I2e055c2b42736633b544b653e9815255578e7169
M compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/CrossfadeDemo.kt
M compose/animation/animation/src/commonMain/kotlin/androidx/compose/animation/Crossfade.kt
M compose/animation/animation/api/public_plus_experimental_current.txt
M compose/animation/animation/api/public_plus_experimental_1.1.0-beta03.txt
M compose/animation/animation/src/androidAndroidTest/kotlin/androidx/compose/animation/CrossfadeTest.kt
Description
AnimatedContent uses
targetState
as the key for each content. ThistargetState
instance may change for the same screen between saves and restores. As a result, content of the screen will not be able to restore due to the (indirect) parent key change.To fix this, we may need to support a mapping between targetState to key on the Transition level APIs.