Loading core/java/android/animation/AnimatorSet.java +1 −0 Original line number Diff line number Diff line Loading @@ -1503,6 +1503,7 @@ public final class AnimatorSet extends Animator implements AnimationHandler.Anim anim.mNodeMap = new ArrayMap<Animator, Node>(); anim.mNodes = new ArrayList<Node>(nodeCount); anim.mEvents = new ArrayList<AnimationEvent>(); anim.mStartListenersCalled = false; anim.mAnimationEndListener = new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { Loading core/tests/coretests/src/android/animation/ViewPropertyAnimatorTest.java +5 −1 Original line number Diff line number Diff line Loading @@ -135,11 +135,15 @@ public class ViewPropertyAnimatorTest { * @throws Exception */ @Before public void setUp() throws Exception { public void setUp() throws Throwable { final BasicAnimatorActivity activity = mActivityRule.getActivity(); Button button = activity.findViewById(R.id.animatingButton); mAnimator = button.animate().x(100).y(100); mActivityRule.runOnUiThread(() -> { mAnimator.start(); mAnimator.cancel(); }); // mListener is the main testing mechanism of this file. The asserts of each test // are embedded in the listener callbacks that it implements. Loading Loading
core/java/android/animation/AnimatorSet.java +1 −0 Original line number Diff line number Diff line Loading @@ -1503,6 +1503,7 @@ public final class AnimatorSet extends Animator implements AnimationHandler.Anim anim.mNodeMap = new ArrayMap<Animator, Node>(); anim.mNodes = new ArrayList<Node>(nodeCount); anim.mEvents = new ArrayList<AnimationEvent>(); anim.mStartListenersCalled = false; anim.mAnimationEndListener = new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { Loading
core/tests/coretests/src/android/animation/ViewPropertyAnimatorTest.java +5 −1 Original line number Diff line number Diff line Loading @@ -135,11 +135,15 @@ public class ViewPropertyAnimatorTest { * @throws Exception */ @Before public void setUp() throws Exception { public void setUp() throws Throwable { final BasicAnimatorActivity activity = mActivityRule.getActivity(); Button button = activity.findViewById(R.id.animatingButton); mAnimator = button.animate().x(100).y(100); mActivityRule.runOnUiThread(() -> { mAnimator.start(); mAnimator.cancel(); }); // mListener is the main testing mechanism of this file. The asserts of each test // are embedded in the listener callbacks that it implements. Loading