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

Co-authored-by: Alex Vanyo <vanyo@google.com>
pull/330/head
Don Turner 2 years ago committed by GitHub
parent 756e45eb82
commit 1c6c812b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,8 +85,8 @@ fun NiaApp(
),
) {
val background: @Composable (@Composable () -> Unit) -> Unit =
when (appState.currentDestination?.route) {
TopLevelDestination.FOR_YOU.name -> {
when (appState.currentTopLevelDestination) {
TopLevelDestination.FOR_YOU -> {
content ->
NiaGradientBackground(content = content)
}

Loading…
Cancel
Save