Skip to content

Commit 1c6c812

Browse files
dturneralexvanyo
andauthored
Update app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt
Co-authored-by: Alex Vanyo <[email protected]>
1 parent 756e45e commit 1c6c812

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/google/samples/apps/nowinandroid/ui

1 file changed

+2
-2
lines changed

app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ fun NiaApp(
8585
),
8686
) {
8787
val background: @Composable (@Composable () -> Unit) -> Unit =
88-
when (appState.currentDestination?.route) {
89-
TopLevelDestination.FOR_YOU.name -> {
88+
when (appState.currentTopLevelDestination) {
89+
TopLevelDestination.FOR_YOU -> {
9090
content ->
9191
NiaGradientBackground(content = content)
9292
}

0 commit comments

Comments
 (0)