0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 04:02:14 +02:00

Fix content padding as we won't draw behind the status bar

This commit is contained in:
Wolf-Martell Montwé 2023-05-25 13:47:28 +02:00
parent 1114250ab4
commit 0d9ad283a4
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
2 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,7 @@ class CatalogActivity : ComponentActivity() {
super.onCreate(savedInstanceState)
WindowCompat.setDecorFitsSystemWindows(window, false)
WindowCompat.setDecorFitsSystemWindows(window, true)
setContent {
CatalogScreen()

View File

@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyGridScope
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
@ -58,8 +57,7 @@ fun <T> PagedContent(
pageCount = pages.size,
state = pagerState,
modifier = Modifier
.fillMaxSize()
.padding(bottom = MainTheme.sizes.topBarHeight),
.fillMaxSize(),
) { page ->
LazyVerticalGrid(
columns = GridCells.Adaptive(300.dp),