diff options
| author | 2024-02-06 13:08:59 +0100 | |
|---|---|---|
| committer | 2024-02-06 13:22:58 +0100 | |
| commit | 396d9cafb3632fc73c915f90f84b3fe466ef9cda (patch) | |
| tree | f40123776a35a62ad86361c311afe18c900b2449 /libs/androidfw/AssetsProvider.cpp | |
| parent | fa838838d8c617b64ffafc6ea87147ad5dad7b54 (diff) | |
Make UserActionResult a class instead of interface (1/2)
In ag/25970777, we introduced a new UserActionResult interface to allow
the user to specify the distance of a user action, as well as changing
the transition key of a user action. This CL made the UserActionResult
an interface that was implemented by SceneKey, so that the old and most
common syntax userActions=mapOf(Swipe.Up to Scenes.Foo) still compiles.
After some discussions with other peers, it came out the the
UserActionResult being an interface implemented by SceneKey was
confusing. This CL makes the UserActionResult a class and instead
overloads the infix `to` function in UserAction so that
`UserAction to SceneKey` returns a Pair<UserAction, UserActionResult>
instead of a Pair<UserAction, SceneKey>, still allowing the shorter and
most common syntax to define user actions.
Bug: 321932826
Test: PlatformComposeSceneTransitionLayoutTests
Flag: N/A
Change-Id: I99566aee81bdd14022e0eda2af9144525d77da49
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions