diff options
| author | 2024-08-13 14:12:44 +0200 | |
|---|---|---|
| committer | 2024-08-13 14:12:44 +0200 | |
| commit | cf079503c6da2f355dcd3232b97bbcf09cec4253 (patch) | |
| tree | c072684a48c841ba93cebfa52f89867ca9c9688b | |
| parent | 90e48229533d1d11a7f64e078ed65142e3a38f9c (diff) | |
Change default current scene of test transitions
This CL is a simple change of default value in test transitions: it
usually make more sense to default the current scene to toScene and not
to fromScene.
Bug: 353679003
Test: atest PlatformComposeSceneTransitionLayoutTests
Flag: EXEMPT test only
Change-Id: If5a43f75af9447a4920c8a46eb29900c631f83f3
| -rw-r--r-- | packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/Transition.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/Transition.kt b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/Transition.kt index 91bd7e1800cd..e4e410828d0a 100644 --- a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/Transition.kt +++ b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/Transition.kt @@ -29,7 +29,7 @@ import kotlinx.coroutines.test.TestScope fun transition( from: SceneKey, to: SceneKey, - current: () -> SceneKey = { from }, + current: () -> SceneKey = { to }, progress: () -> Float = { 0f }, progressVelocity: () -> Float = { 0f }, previewProgress: () -> Float = { 0f }, |