@@ -7,7 +7,6 @@ import androidx.compose.runtime.LaunchedEffect
77import androidx.compose.ui.platform.LocalUriHandler
88import androidx.lifecycle.viewmodel.navigation3.rememberViewModelStoreNavEntryDecorator
99import androidx.navigation3.runtime.EntryProviderScope
10- import androidx.navigation3.runtime.NavBackStack
1110import androidx.navigation3.runtime.entryProvider
1211import androidx.navigation3.runtime.rememberSaveableStateHolderNavEntryDecorator
1312import androidx.navigation3.scene.Scene
@@ -61,7 +60,7 @@ fun navigateToNews(newsId: String) {
6160private val notificationNavRequests = Channel <Any >(capacity = 1 )
6261
6362@Composable
64- private fun NotificationHandler (backStack : NavBackStack <AppRoute >) {
63+ private fun NotificationHandler (backStack : MutableList <AppRoute >) {
6564 LaunchedEffect (Unit ) {
6665 while (true ) {
6766 val destination: Any = notificationNavRequests.receive()
@@ -75,7 +74,6 @@ internal fun KotlinConfNavHost(
7574 isOnboardingComplete : Boolean ,
7675 popTransactionSpec : (AnimatedContentTransitionScope <Scene <Any >>.() -> ContentTransform )? ,
7776) {
78- // TODO: make this saveable!
7977 val startDestination = if (isOnboardingComplete) MainScreen else StartPrivacyNoticeScreen
8078 val appBackStack = rememberNavBackStack<AppRoute >(startDestination)
8179
@@ -95,7 +93,7 @@ internal fun KotlinConfNavHost(
9593 )
9694}
9795
98- fun EntryProviderScope<Any>.screens (backStack : NavBackStack <AppRoute >) {
96+ fun EntryProviderScope<Any>.screens (backStack : MutableList <AppRoute >) {
9997 startScreens(backStack) // TODO inline these later
10098
10199 entry<MainScreen > {
@@ -237,7 +235,7 @@ fun EntryProviderScope<Any>.screens(backStack: NavBackStack<AppRoute>) {
237235 }
238236}
239237
240- fun EntryProviderScope<Any>.startScreens (backStack : NavBackStack <AppRoute >) {
238+ fun EntryProviderScope<Any>.startScreens (backStack : MutableList <AppRoute >) {
241239 entry<StartPrivacyNoticeScreen > {
242240 val skipNotifications = LocalFlags .current.supportsNotifications.not ()
243241 AppPrivacyNoticePrompt (
0 commit comments