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(
123
123
}
124
124
}
125
125
126
- var nestedNavHostStartRoute by remember {
126
+ var topicRoute by remember {
127
127
val route = selectedTopicId?.let { TopicRoute (id = it) } ? : TopicPlaceholderRoute
128
128
mutableStateOf(route)
129
129
}
130
130
131
131
fun onTopicClickShowDetailPane (topicId : String ) {
132
132
onTopicClick(topicId)
133
- nestedNavHostStartRoute = TopicRoute (id = topicId)
133
+ topicRoute = TopicRoute (id = topicId)
134
134
coroutineScope.launch {
135
135
listDetailNavigator.navigateTo(ListDetailPaneScaffoldRole .Detail )
136
136
}
@@ -194,7 +194,7 @@ internal fun InterestsListDetailScreen(
194
194
}
195
195
},
196
196
) {
197
- AnimatedContent (nestedNavHostStartRoute ) { route ->
197
+ AnimatedContent (topicRoute ) { route ->
198
198
when (route) {
199
199
is TopicRoute -> {
200
200
TopicScreen (
You can’t perform that action at this time.
0 commit comments