Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acdcf2be authored by Arthur Hung's avatar Arthur Hung
Browse files

Fix cancel animation invoke callback early

Removed the redundant finish behavior when the cancel animation is
running.

Bug: 259608500
Test: atest BackProgressAnimatorTest
Change-Id: Iceab5439c974268d1688d0c556c76cad33716249
parent f761035d
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -370,13 +370,7 @@ class CrossActivityAnimation {

        @Override
        public void onBackCancelled() {
            // End the fade in animation.
            mProgressAnimator.onBackCancelled(CrossActivityAnimation.this::finishAnimation);
            mEnteringProgressSpring.cancel();
            mLeavingProgressSpring.cancel();
            // TODO (b259608500): Let BackProgressAnimator could play cancel animation.
            mProgressAnimator.reset();
            finishAnimation();
        }

        @Override