Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2e3a116 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Update nav bar window layout params when nav mode changes" into main

parents 372f5d4e 791f7618
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2028,12 +2028,15 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
                    getBarTransitions().setBackgroundOverrideAlpha(1f);
                }
            }
            updateScreenPinningGestures();

            // Update the window layout params when the nav mode changes as that will affect the
            // system gesture insets
            setNavBarMode(mode);
            repositionNavigationBar(mCurrentRotation);

            if (!canShowSecondaryHandle()) {
                resetSecondaryHandle();
            }
            setNavBarMode(mode);
            mView.setShouldShowSwipeUpUi(mOverviewProxyService.shouldShowSwipeUpUI());
        }
    };