We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f8f95 commit ab24fc3Copy full SHA for ab24fc3
app/src/main/java/com/example/nav3recipes/modular/CommonModule.kt
@@ -13,14 +13,7 @@ import javax.inject.Inject
13
14
typealias EntryProviderInstaller = EntryProviderBuilder<Any>.() -> Unit
15
16
-@Module
17
-@InstallIn(ActivityRetainedComponent::class)
18
-object CommonModule {
19
- @Provides
20
- @ActivityRetainedScoped
21
- fun provideBackStackFactory() : BackStackFactory = BackStackFactory()
22
-}
23
-
+@ActivityRetainedScoped
24
class BackStackFactory @Inject constructor() {
25
fun create(startDestination: Any) : SnapshotStateList<Any> = mutableStateListOf(startDestination)
26
}
0 commit comments