Merge "Fix cancel animation invoke callback early"

This commit is contained in:
TreeHugger Robot
2023-02-08 04:09:51 +00:00
committed by Android (Google) Code Review

View File

@@ -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