commit | c4a8ae2ab37546d2bf38afbc5c829acad345b635 | [log] [tgz] |
---|---|---|
author | Jordan Demeulenaere <jdemeulenaere@google.com> | Fri Mar 08 15:25:44 2024 +0100 |
committer | Jordan Demeulenaere <jdemeulenaere@google.com> | Fri Mar 08 15:32:02 2024 +0100 |
tree | 291efd497b9d94e0ea63e62c6dcc6d13a246f011 | |
parent | 0acf75e1df2446218219b4f2822c60b9c9d1c572 [diff] |
Simplify the swipe offset animation logic This CL simplifies the logic when animating the offset of a swipe transition, after the user lifted their finger. The previous implementation was made more complicated just to avoid allocating more than one Animatable per SwipeTransition, which does not really have an impact on performance anyways. Bug: 290930950 Test: atest DraggableHandlerTest Flag: N/A Change-Id: I7b0d4bb1c6f29a3bfc02778e2fe8b03e80b5a6be