Skip to content

Commit fa3150f

Browse files
committed
Removing constructor injection from Navigator
1 parent 60e7d39 commit fa3150f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/example/nav3recipes/modular/hilt/CommonModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import javax.inject.Inject
1010
typealias EntryProviderInstaller = EntryProviderBuilder<Any>.() -> Unit
1111

1212
@ActivityRetainedScoped
13-
class Navigator @Inject constructor(startDestination: Any) {
13+
class Navigator(startDestination: Any) {
1414
val backStack : SnapshotStateList<Any> = mutableStateListOf(startDestination)
1515

1616
fun goTo(destination: Any){

0 commit comments

Comments
 (0)