Skip to content

Commit

Permalink
Fix bottom insets for navigation view
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Jul 30, 2022
1 parent fcd930f commit 2c185fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
getBottomSheetBehavior();

if (isApplyFooterInsets()) {
DynamicViewUtils.applyWindowInsetsBottom(mFrameFooter);
DynamicViewUtils.applyWindowInsetsBottom(mFrameFooter, true);
}

setFrameVisibility(mBottomSheet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ public void applyWindowInsets() {
right + rect.right, bottom + rect.bottom);

if (menuView != null) {
menuView.setPadding(menuLeft, header != null ? menuTop
: menuTop + rect.top, menuRight, menuBottom);
menuView.setPadding(menuLeft, header != null ? menuTop : menuTop + rect.top,
menuRight, menuBottom + insets.getInsetsIgnoringVisibility(
WindowInsetsCompat.Type.navigationBars()).bottom);
}

if (header != null) {
Expand Down

0 comments on commit 2c185fe

Please sign in to comment.