A fully functional Android app built entirely with Kotlin and Jetpack Compose
Rename to shouldShowGradientBackground
Alex Vanyo088a1de92e6c
diff --git a/app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt b/app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.ktindex 325ff2652..55be2dc55 100644--- a/app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt+++ b/app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt@@ -87,21 +87,22 @@ fun NiaApp(windowSizeClass = windowSizeClass),) {- val showGradientBackground = appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU+ val shouldShowGradientBackground =+ appState.currentTopLevelDestination == TopLevelDestination.FOR_YOUNiaBackground {NiaGradientBackground(- topColor = if (showGradientBackground) {+ topColor = if (shouldShowGradientBackground) {LocalGradientColors.current.top} else {Color.Unspecified},- bottomColor = if (showGradientBackground) {+ bottomColor = if (shouldShowGradientBackground) {LocalGradientColors.current.bottom} else {Color.Unspecified},- containerColor = if (showGradientBackground) {+ containerColor = if (shouldShowGradientBackground) {LocalGradientColors.current.container} else {Color.Unspecified