From 95bdc0f5332f0c8661f36edf9d11119ed7c94910 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Thu, 30 May 2024 13:20:46 +0100 Subject: [PATCH] Rename ForYouRoute composable to ForYouScreen Change-Id: I47456f19f2b41cafe44ba7636cad6d1fea782a33 --- .../samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt | 2 +- .../feature/foryou/navigation/ForYouNavigation.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt b/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt index 885020636..0f345aa80 100644 --- a/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt +++ b/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt @@ -106,7 +106,7 @@ import com.google.samples.apps.nowinandroid.core.ui.launchCustomChromeTab import com.google.samples.apps.nowinandroid.core.ui.newsFeed @Composable -internal fun ForYouRoute( +internal fun ForYouScreen( onTopicClick: (String) -> Unit, modifier: Modifier = Modifier, viewModel: ForYouViewModel = hiltViewModel(), diff --git a/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/navigation/ForYouNavigation.kt b/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/navigation/ForYouNavigation.kt index 11bc8a251..fb0f2b82b 100644 --- a/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/navigation/ForYouNavigation.kt +++ b/feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/navigation/ForYouNavigation.kt @@ -23,7 +23,7 @@ import androidx.navigation.compose.composable import androidx.navigation.navDeepLink import com.google.samples.apps.nowinandroid.core.notifications.DEEP_LINK_SCHEME_AND_HOST import com.google.samples.apps.nowinandroid.core.notifications.FOR_YOU_PATH -import com.google.samples.apps.nowinandroid.feature.foryou.ForYouRoute +import com.google.samples.apps.nowinandroid.feature.foryou.ForYouScreen import kotlinx.serialization.Serializable const val LINKED_NEWS_RESOURCE_ID = "linkedNewsResourceId" @@ -40,6 +40,6 @@ fun NavGraphBuilder.forYouScreen(onTopicClick: (String) -> Unit) { navDeepLink(basePath = DEEP_LINK_BASE_PATH), ), ) { - ForYouRoute(onTopicClick) + ForYouScreen(onTopicClick) } }