commit dd3c500a9dd8970a8858d0464e41080b3f1c2316
parent 88ab8c9600f2ad4f1fa40fadffd83aa675f360d7
Author: Mugurell <Mugurell@users.noreply.github.com>
Date: Wed, 12 Nov 2025 15:40:52 +0000
Bug 1998100 - part 1 - Don't add a top padding on homepage if using the View based toolbar r=android-reviewers,Roger
The layout is updated to account for the top View based toolbar inside
HomeToolbarView already.
Differential Revision: https://phabricator.services.mozilla.com/D272235
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
@@ -982,7 +982,10 @@ class HomeFragment : Fragment() {
LaunchedEffect(isInPortrait, keyboardState) {
updateLayoutParams<ViewGroup.MarginLayoutParams> {
- topMargin = getTopToolbarHeight()
+ topMargin = when (settings.shouldUseComposableToolbar) {
+ true -> getTopToolbarHeight()
+ else -> 0
+ }
bottomMargin = getBottomToolbarHeight(keyboardState == KeyboardState.Closed)
}
}