Skip to content

Commit 76990d5

Browse files
author
李泽鹏
committed
动画可自定义
1 parent b199e76 commit 76990d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib_base/src/main/java/com/gxyj/base/helper/RouterHelper.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RouterHelper {
4242
fun gotoAty(
4343
path: String,
4444
@AnimRes enterAnim: Int = mEnterAnim,
45-
@AnimRes exitAnim: Int = mEnterAnim
45+
@AnimRes exitAnim: Int = mExitAnim
4646
): Postcard {
4747
return ARouter.getInstance().build(path)
4848
.withTransition(enterAnim, exitAnim)
@@ -55,7 +55,7 @@ class RouterHelper {
5555
fun gotoAtySingleTask(
5656
path: String,
5757
@AnimRes enterAnim: Int = mEnterAnim,
58-
@AnimRes exitAnim: Int = mEnterAnim
58+
@AnimRes exitAnim: Int = mExitAnim
5959
): Postcard {
6060
return gotoAty(path, enterAnim, exitAnim)
6161
.withFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP)
@@ -66,7 +66,7 @@ class RouterHelper {
6666
@IdRes path: Int,
6767
bundle: Bundle? = null,
6868
@AnimRes enterAnim: Int = mEnterAnim,
69-
@AnimRes exitAnim: Int = mEnterAnim
69+
@AnimRes exitAnim: Int = mExitAnim
7070
) {
7171
navController.navigate(path, bundle, navOptions {
7272
anim {

0 commit comments

Comments
 (0)