mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2026-02-04 10:35:46 +00:00
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.
This commit is contained in:
committed by
GitHub
parent
0658ca2a2d
commit
bdfa9a2216
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user