|
|
@ -41,6 +41,7 @@ import com.google.samples.apps.nowinandroid.feature.topic.navigation.topicScreen
|
|
|
|
import kotlinx.serialization.Serializable
|
|
|
|
import kotlinx.serialization.Serializable
|
|
|
|
|
|
|
|
|
|
|
|
@Serializable object TopicPlaceholderDestination
|
|
|
|
@Serializable object TopicPlaceholderDestination
|
|
|
|
|
|
|
|
|
|
|
|
@Serializable object DetailPaneNavHostDestination
|
|
|
|
@Serializable object DetailPaneNavHostDestination
|
|
|
|
|
|
|
|
|
|
|
|
fun NavGraphBuilder.interestsListDetailScreen() {
|
|
|
|
fun NavGraphBuilder.interestsListDetailScreen() {
|
|
|
@ -92,7 +93,7 @@ internal fun InterestsListDetailScreen(
|
|
|
|
NavHost(
|
|
|
|
NavHost(
|
|
|
|
navController = nestedNavController,
|
|
|
|
navController = nestedNavController,
|
|
|
|
startDestination = TopicPlaceholderDestination::class,
|
|
|
|
startDestination = TopicPlaceholderDestination::class,
|
|
|
|
route = DetailPaneNavHostDestination::class
|
|
|
|
route = DetailPaneNavHostDestination::class,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
topicScreen(
|
|
|
|
topicScreen(
|
|
|
|
showBackButton = !listDetailNavigator.isListPaneVisible(),
|
|
|
|
showBackButton = !listDetailNavigator.isListPaneVisible(),
|
|
|
|