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

Commit 791f7618 authored by Winson Chung's avatar Winson Chung
Browse files

Update nav bar window layout params when nav mode changes

Bug: 340240541
Test: Manual, switch between nav modes and verify system gesture insets update
Change-Id: I8908283c47af7a02dd31d6f71246a06b1eabc35e
parent 5610bd19
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());
        }
    };