summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2021-06-30 19:46:39 +0000
committerGeorge Mount <mount@google.com>2021-07-01 18:07:15 +0000
commit4c19a7cc2a5db090f113fa2ad4ad26acd5c7c1b8 (patch)
tree4e3bc81e4a87df08dbf381b9d0a037ccbac42d3f /tools/aapt2/java/JavaClassGenerator_test.cpp
parent8fd5255fc41d1efbb3b9b29daf1a8f0e73d3f449 (diff)
Limit overscroll stretch for animation
Bug: 192465706 Stretch overscroll was allowing pull distances beyond 1, but the effect only applied until 1. This meant that as the stretch relaxed, it would appear stopped at 1 until it dropped below 1. This CL does two things. First, it limits the pull distance to 1, so that if it is pulled beyond 1, the distance remains 1 and the spring will immediately retract from 1 with onRelease(). Second, when the fling hits 1, it stops the fling animation and immediately begins retracting from a velocity of 0. Test: new tests and manual testing for visual effect Test: I23cd8990fff24dbef36a93c16c115948d774a557 Change-Id: I06f1533aed0ce24756c535789fdcc7e99c5bfb9b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions