Fix an issue where the end runnable may not get called
- Bubble transitions uses the end runnable to notify WM when a
transition is finished, but canceling a PhsyicsAnimator will
not trigger the end callback which can leave indefinite
transitions hanging (until screen off or reboot). To fix
this we add a separate endOrCancel action that can be used to
ensure that the runnable is always run regardless of whether the
animator was canceled or not
- ViewPropertyAnimators have a similar problem, and is the only
usage of VPAs in the class, so we can change that animator to a
normal animator with an animator listener for the callback
- Also fixing a bunch of generic bubble transitions logs to be
transition-specific
Bug: 419081119
Flag: EXEMPT bugfix
Test: atest PhysicsAnimatorTest
Test: atest BubbleBarAnimationHelperTest
Change-Id: I1e69798726207e9251239e8ed03c41ff0e7df90e
7 files changed