Skip to content

Commit

Permalink
Resolve code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuwu committed Nov 28, 2023
1 parent 85e68c9 commit d5c90ba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AppNavigator(
// Start activity
if (activityIntent != null) {
val options = createStartActivityOptions()
checkAndStartActivity(screen, activityIntent, options)
checkAndStartActivity(activityIntent, options)
} else {
fragmentForward(command)
}
Expand Down Expand Up @@ -128,7 +128,7 @@ class AppNavigator(
// Replace activity
if (activityIntent != null) {
val options = createStartActivityOptions()
checkAndStartActivity(screen, activityIntent, options)
checkAndStartActivity(activityIntent, options)
activity.finish()
} else {
fragmentReplace(command)
Expand Down Expand Up @@ -193,7 +193,6 @@ class AppNavigator(
}

private fun checkAndStartActivity(
screen: SupportAppScreen,
activityIntent: Intent,
options: Bundle?
) {
Expand Down

0 comments on commit d5c90ba

Please sign in to comment.