From 088a1de92e6c2322285a41aad12feefb6150674e Mon Sep 17 00:00:00 2001 From: Alex Vanyo Date: Wed, 21 Dec 2022 10:41:58 -0800 Subject: [PATCH] Rename to shouldShowGradientBackground Change-Id: I79d4b43354f9da99d91fb21ee84fc084b374f4b8 --- .../com/google/samples/apps/nowinandroid/ui/NiaApp.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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.kt index 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_YOU NiaBackground { 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