From d5c90baa80c5ac821c06a19191b82dd7d606dd7b Mon Sep 17 00:00:00 2001 From: Hieu Vu <star.hieu.99@gmail.com> Date: Tue, 28 Nov 2023 19:41:37 +0700 Subject: [PATCH] Resolve code smells --- .../navigator/presentation/navigation/AppNavigator.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/dev/arkbuilders/navigator/presentation/navigation/AppNavigator.kt b/app/src/main/java/dev/arkbuilders/navigator/presentation/navigation/AppNavigator.kt index d10bc292..02d5f5ad 100644 --- a/app/src/main/java/dev/arkbuilders/navigator/presentation/navigation/AppNavigator.kt +++ b/app/src/main/java/dev/arkbuilders/navigator/presentation/navigation/AppNavigator.kt @@ -80,7 +80,7 @@ class AppNavigator( // Start activity if (activityIntent != null) { val options = createStartActivityOptions() - checkAndStartActivity(screen, activityIntent, options) + checkAndStartActivity(activityIntent, options) } else { fragmentForward(command) } @@ -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) @@ -193,7 +193,6 @@ class AppNavigator( } private fun checkAndStartActivity( - screen: SupportAppScreen, activityIntent: Intent, options: Bundle? ) {