summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-06-13 14:30:34 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-06-14 10:49:56 +0200
commitcfdc4d24d18431adef56faf078a13d072db9c803 (patch)
tree4e19a5ac18e35733c0edcb3659cd9ad233419955 /libs/androidfw/ConfigDescription.cpp
parent1e8d0901d5f5da25435cf85e33bf7c12d3c36911 (diff)
Improve overscroll performance
This CL improves the performance of STL when overscrolling: before this CL, releasing the finger during an overscroll would make the last animation frame (at progress 0% or 100%) slower because the overscrollSpec would go from a non-null value to a null value, only for that frame, placing more elements than during the transition. This CL changes the check done to compute SwipeTransition.isBouncing() so that overscrollSpec does not unnecessarily change values at the end of the transition. See b/345632645#comment5 for a before/after comparison. Bug: 345632645 Test: DraggableHandlerTest Flag: com.android.systemui.scene_container Change-Id: I0b16b432a610f5613d448d00f085c723926929ee
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions