diff options
author | Joshua Tsuji <tsuji@google.com> | 2020-05-07 12:15:24 -0400 |
---|---|---|
committer | Joshua Tsuji <tsuji@google.com> | 2020-05-07 12:23:40 -0400 |
commit | 06927c22d847c7b68a7c8375b13c9e4e6a6c2a3a (patch) | |
tree | 6536c19b476022993e9a67796eecf3d49ef7b5a3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 6dfbdb3e2f68995874946bbe7b5c0edfb0074e11 (diff) |
Fix PIP snapping to incorrect location.
animateToClosestSnapTarget is no longer used, we always use flingToSnapTarget now. If velocity is low/zero, the fling animation will end and a spring animation will spring it to the nearest allowable location.
This also incorporates a fix to PhysicsAnimator (cl/296316037) to more accurately decide if a fling is strong enough to reach the other side of the screen. This fixes an issue where pushing PIP off-screen and then very gently moving it back on screen caused it to jump to the other side of the screen.
Fixes: 154937295
Test: manual
Change-Id: I6f0284195bcb802f4cdd58cc06457023dcf63aa1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions