Skip to content

Commit 77c0d6c

Browse files
committed
Rename to topicRoute
Change-Id: I44696efe11f8d660bb7c9dc41ade6927ce15798b
1 parent 502c719 commit 77c0d6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)