diff options
| author | 2024-06-12 06:18:27 +0000 | |
|---|---|---|
| committer | 2024-06-12 06:19:00 +0000 | |
| commit | 791f7618bd39c7d9a75368451cb2defb11d1586c (patch) | |
| tree | 2a8d0d3aefd1045b172af372b09a1af182c475a7 | |
| parent | 5610bd199e1f5af188d6aea678633905b1c8dacf (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java index 0e819c2b0a4f..07289cb7b809 100644 --- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java @@ -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()); } }; |