summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2024-07-30 12:05:15 +0000
committer omarmt <omarmt@google.com> 2024-07-30 15:12:09 +0000
commit9f7ef863c89afaa49b90bc1f0472af250cb81665 (patch)
tree9e10b0c4bd9be37eb05941ba8074aa1a80765b88 /libs/androidfw/StringPool.cpp
parent8ab73c300762e8ef62a929913be4c933381d0e46 (diff)
Simplify DraggableHandlerImpl.onDrag()
In this CL, our aim is to simplify the onDrag() function and minimize object creation during the drag gesture. Instead of directly updating the swipeTransition.dragOffset, we introduce a desiredOffset. We then check if we have reached the toScene and use this information to calculate the newOffset. This approach also considers transitions that cannot overscroll. Following this, we update the current transition and potentially create a new transition, if required. Test: Just a refactor Bug: 336710600 Flag: com.android.systemui.scene_container Change-Id: I501b47b58e2f7e47b2aeb6cb15c3028cbb422877
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions