File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed
mobile/android/fenix/app/src/main/java/org/mozilla/fenix Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package org.mozilla.fenix.debugsettings.gleandebugtools
66
77import android.content.Intent
88import android.widget.Toast
9+ import androidx.compose.foundation.layout.WindowInsets
910import androidx.compose.foundation.layout.padding
1011import androidx.compose.material3.ExperimentalMaterial3Api
1112import androidx.compose.material3.Icon
@@ -18,6 +19,7 @@ import androidx.compose.runtime.Composable
1819import androidx.compose.ui.Modifier
1920import androidx.compose.ui.res.painterResource
2021import androidx.compose.ui.res.stringResource
22+ import androidx.compose.ui.unit.dp
2123import androidx.core.net.toUri
2224import androidx.navigation.fragment.findNavController
2325import mozilla.telemetry.glean.Glean
@@ -90,6 +92,10 @@ class GleanDebugToolsFragment : ComposeFragment() {
9092 )
9193 }
9294 },
95+ windowInsets = WindowInsets (
96+ top = 0 .dp,
97+ bottom = 0 .dp,
98+ ),
9399 colors = TopAppBarDefaults .topAppBarColors(containerColor = FirefoxTheme .colors.layer1),
94100 )
95101 },
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package org.mozilla.fenix.debugsettings.ui
66
77import androidx.compose.foundation.background
88import androidx.compose.foundation.layout.Box
9+ import androidx.compose.foundation.layout.WindowInsets
910import androidx.compose.foundation.layout.fillMaxSize
1011import androidx.compose.foundation.layout.padding
1112import androidx.compose.material3.ExperimentalMaterial3Api
@@ -79,6 +80,10 @@ fun DebugDrawer(
7980 }
8081 }
8182 },
83+ windowInsets = WindowInsets (
84+ top = 0 .dp,
85+ bottom = 0 .dp,
86+ ),
8287 colors = TopAppBarDefaults .topAppBarColors(containerColor = FirefoxTheme .colors.layer1),
8388 )
8489 },
Original file line number Diff line number Diff line change 44
55package org.mozilla.fenix.downloads.listscreen
66
7+ import androidx.compose.foundation.layout.WindowInsets
78import androidx.compose.material3.ExperimentalMaterial3Api
89import androidx.compose.material3.Icon
910import androidx.compose.material3.IconButton
@@ -15,6 +16,7 @@ import androidx.compose.ui.Modifier
1516import androidx.compose.ui.graphics.Color
1617import androidx.compose.ui.res.painterResource
1718import androidx.compose.ui.res.stringResource
19+ import androidx.compose.ui.unit.dp
1820import mozilla.components.compose.base.annotation.FlexibleWindowLightDarkPreview
1921import org.mozilla.fenix.R
2022import org.mozilla.fenix.theme.FirefoxTheme
@@ -47,6 +49,10 @@ internal fun DownloadsTopAppBar(
4749 actions = {
4850 actions()
4951 },
52+ windowInsets = WindowInsets (
53+ top = 0 .dp,
54+ bottom = 0 .dp,
55+ ),
5056 colors = TopAppBarDefaults .topAppBarColors(containerColor = backgroundColor),
5157 )
5258}
Original file line number Diff line number Diff line change @@ -705,6 +705,10 @@ private fun BookmarksListTopBar(
705705 }
706706 }
707707 },
708+ windowInsets = WindowInsets (
709+ top = 0 .dp,
710+ bottom = 0 .dp,
711+ ),
708712 )
709713 }
710714}
@@ -901,6 +905,10 @@ private fun SelectFolderTopBar(
901905 }
902906 }
903907 },
908+ windowInsets = WindowInsets (
909+ top = 0 .dp,
910+ bottom = 0 .dp,
911+ ),
904912 )
905913}
906914
@@ -1243,6 +1251,10 @@ private fun EditFolderTopBar(
12431251 )
12441252 }
12451253 },
1254+ windowInsets = WindowInsets (
1255+ top = 0 .dp,
1256+ bottom = 0 .dp,
1257+ ),
12461258 )
12471259}
12481260
@@ -1322,6 +1334,10 @@ private fun AddFolderTopBar(onBackClick: () -> Unit) {
13221334 )
13231335 }
13241336 },
1337+ windowInsets = WindowInsets (
1338+ top = 0 .dp,
1339+ bottom = 0 .dp,
1340+ ),
13251341 )
13261342}
13271343
@@ -1510,6 +1526,10 @@ private fun EditBookmarkTopBar(
15101526 )
15111527 }
15121528 },
1529+ windowInsets = WindowInsets (
1530+ top = 0 .dp,
1531+ bottom = 0 .dp,
1532+ ),
15131533 )
15141534}
15151535
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.Arrangement
1010import androidx.compose.foundation.layout.Column
1111import androidx.compose.foundation.layout.Row
1212import androidx.compose.foundation.layout.Spacer
13+ import androidx.compose.foundation.layout.WindowInsets
1314import androidx.compose.foundation.layout.fillMaxWidth
1415import androidx.compose.foundation.layout.height
1516import androidx.compose.foundation.layout.imePadding
@@ -279,6 +280,10 @@ private fun TempAppBar(
279280 )
280281 }
281282 },
283+ windowInsets = WindowInsets (
284+ top = 0 .dp,
285+ bottom = 0 .dp,
286+ ),
282287 )
283288}
284289
You can’t perform that action at this time.
0 commit comments