A fully functional Android app built entirely with Kotlin and Jetpack Compose
Add back spacer for navigation bar
Don Turner501d29be59b6
diff --git a/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt b/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.ktindex 19d3c1e6b..bcff09fae 100644--- a/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt+++ b/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt@@ -24,12 +24,17 @@ import androidx.compose.foundation.layout.BoxWithConstraintsimport androidx.compose.foundation.layout.Columnimport androidx.compose.foundation.layout.PaddingValuesimport androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.WindowInsetsimport androidx.compose.foundation.layout.fillMaxSizeimport androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.heightInimport androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.safeDrawingimport androidx.compose.foundation.layout.sizeimport androidx.compose.foundation.layout.width+import androidx.compose.foundation.layout.windowInsetsBottomHeightimport androidx.compose.foundation.lazy.LazyListScopeimport androidx.compose.foundation.lazy.grid.GridCellsimport androidx.compose.foundation.lazy.grid.GridCells.Adaptive@@ -175,15 +180,15 @@ internal fun ForYouScreen(onNewsResourcesCheckedChanged = onNewsResourcesCheckedChanged,)- /*item(span = { GridItemSpan(maxLineSpan) }) {- Column {- Spacer(modifier = Modifier.height(8.dp))- // Add space for the content to clear the "offline" snackbar.- // TODO: Check that the Scaffold handles this correctly in NiaApp- if (isOffline) Spacer(modifier = Modifier.height(48.dp))- Spacer(Modifier.windowInsetsBottomHeight(WindowInsets.safeDrawing))- }- }*/+ item(span = { GridItemSpan(maxLineSpan) }) {+ Column {+ Spacer(modifier = Modifier.height(8.dp))+ // Add space for the content to clear the "offline" snackbar.+ // TODO: Check that the Scaffold handles this correctly in NiaApp+ // if (isOffline) Spacer(modifier = Modifier.height(48.dp))+ Spacer(Modifier.windowInsetsBottomHeight(WindowInsets.safeDrawing))+ }+ }}AnimatedVisibility(visible = isSyncing ||