File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,14 @@ internal fun InterestsListDetailScreen(
123123 }
124124 }
125125
126- var nestedNavHostStartRoute by remember {
126+ var topicRoute by remember {
127127 val route = selectedTopicId?.let { TopicRoute (id = it) } ? : TopicPlaceholderRoute
128128 mutableStateOf(route)
129129 }
130130
131131 fun onTopicClickShowDetailPane (topicId : String ) {
132132 onTopicClick(topicId)
133- nestedNavHostStartRoute = TopicRoute (id = topicId)
133+ topicRoute = TopicRoute (id = topicId)
134134 coroutineScope.launch {
135135 listDetailNavigator.navigateTo(ListDetailPaneScaffoldRole .Detail )
136136 }
@@ -194,7 +194,7 @@ internal fun InterestsListDetailScreen(
194194 }
195195 },
196196 ) {
197- AnimatedContent (nestedNavHostStartRoute ) { route ->
197+ AnimatedContent (topicRoute ) { route ->
198198 when (route) {
199199 is TopicRoute -> {
200200 TopicScreen (
You can’t perform that action at this time.
0 commit comments