Skip to content

Commit

Permalink
fix:进出场动画
Browse files Browse the repository at this point in the history
  • Loading branch information
aleyn97 committed Nov 13, 2023
1 parent bb228d0 commit d038eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ android.nonTransitiveRClass=true
android.disableAutomaticComponentCreation=true
# router version
#lrouterVersion=main-SNAPSHOT
lrouterVersion=1.0.3
lrouterVersion=1.0.4
lrouterGroup=com.github.aleyn97.router
useLocal=true
3 changes: 2 additions & 1 deletion router/src/main/java/com/aleyn/router/core/Navigator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Navigator private constructor(
resultLauncher.launch(intent, optionsCompat)
}
navCallback?.onArrival(this)
if ((enterAnim != 0 || exitAnim != 0) && currentContext is Activity) {
if ((enterAnim != -1 || exitAnim != -1) && currentContext is Activity) {
currentContext.overridePendingTransition(enterAnim, exitAnim)
}
}
Expand Down Expand Up @@ -158,6 +158,7 @@ class Navigator private constructor(
this.mBundle.putAll(navigator.bundle)
this.flags = navigator.flags
this.enterAnim = navigator.enterAnim
this.exitAnim = navigator.exitAnim
this.optionsCompat = navigator.optionsCompat
this.action = navigator.action
this.resultLauncher = navigator.resultLauncher
Expand Down

0 comments on commit d038eef

Please sign in to comment.