From bdfa9a2216f6f68fdd45a82dc6aee46df28ee25d Mon Sep 17 00:00:00 2001 From: Hans-Peter Lehmann Date: Sun, 14 Dec 2025 11:57:17 +0100 Subject: [PATCH] Work around bottom navigation sometimes getting additional padding (#8156) This is not a proper solution because we still have broken paddings on the FeedItemListFragment but at least it is less noticeable. We can fix this properly after we remove side navigation. --- .../de/danoeh/antennapod/ui/screen/drawer/BottomNavigation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/BottomNavigation.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/BottomNavigation.java index 84a723738..ab95cbd5f 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/BottomNavigation.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/BottomNavigation.java @@ -11,6 +11,7 @@ import androidx.appcompat.view.menu.MenuBuilder; import androidx.appcompat.widget.ListPopupWindow; import com.google.android.material.badge.BadgeDrawable; import com.google.android.material.bottomnavigation.BottomNavigationView; +import com.google.android.material.internal.ViewUtils; import com.google.android.material.navigation.NavigationBarView; import de.danoeh.antennapod.R; import de.danoeh.antennapod.event.FeedListUpdateEvent; @@ -40,6 +41,7 @@ public class BottomNavigation { public BottomNavigation(BottomNavigationView bottomNavigationView) { this.bottomNavigationView = bottomNavigationView; this.context = bottomNavigationView.getContext(); + ViewUtils.doOnApplyWindowInsets(bottomNavigationView, (view, insets, initialPadding) -> insets); } public void buildMenu() {