Skip to content

Commit

Permalink
动画可自定义
Browse files Browse the repository at this point in the history
  • Loading branch information
李泽鹏 committed Dec 27, 2018
1 parent b199e76 commit 76990d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib_base/src/main/java/com/gxyj/base/helper/RouterHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RouterHelper {
fun gotoAty(
path: String,
@AnimRes enterAnim: Int = mEnterAnim,
@AnimRes exitAnim: Int = mEnterAnim
@AnimRes exitAnim: Int = mExitAnim
): Postcard {
return ARouter.getInstance().build(path)
.withTransition(enterAnim, exitAnim)
Expand All @@ -55,7 +55,7 @@ class RouterHelper {
fun gotoAtySingleTask(
path: String,
@AnimRes enterAnim: Int = mEnterAnim,
@AnimRes exitAnim: Int = mEnterAnim
@AnimRes exitAnim: Int = mExitAnim
): Postcard {
return gotoAty(path, enterAnim, exitAnim)
.withFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP)
Expand All @@ -66,7 +66,7 @@ class RouterHelper {
@IdRes path: Int,
bundle: Bundle? = null,
@AnimRes enterAnim: Int = mEnterAnim,
@AnimRes exitAnim: Int = mEnterAnim
@AnimRes exitAnim: Int = mExitAnim
) {
navController.navigate(path, bundle, navOptions {
anim {
Expand Down

0 comments on commit 76990d5

Please sign in to comment.