Correct parameter order when calling setCustomAnimation.

Only affect predict-back animation.

Bug: 259427810
Test: manual, call overrideActivityTransition for close transition,
verify when predict-back animation happen, the exit animation is apply
to the exit activity.
Test: atest ActivityTransitionTests BackNavigationControllerTests\
CustomizeActivityAnimationTest

Change-Id: I5ddfc6e674deb7b3bfcd7365d525ec6d03c525ac
This commit is contained in:
wilsonshih
2023-04-07 11:07:38 +08:00
parent 36fef761f1
commit 556fbf2671

View File

@@ -286,8 +286,8 @@ class BackNavigationController {
currentActivity.getCustomAnimation(false/* open */);
if (customAppTransition != null) {
infoBuilder.setCustomAnimation(currentActivity.packageName,
customAppTransition.mExitAnim,
customAppTransition.mEnterAnim,
customAppTransition.mExitAnim,
customAppTransition.mBackgroundColor);
}
}