Remove redundant logic about showing navigation bar
PhoneWindowManager.layoutNavigationBar() has already made nav bar
show while status bar is expanded. The logic here is redundant.
Test: 1. go/wm-smoke
2. Open a video in YouTube in fullscreen mode and then expand
status bar, and see if navigation bar would show; collapse
status bar, and see if navigation bar would hide
Change-Id: I5327701ce1ad755354e42b6e14643f301abb6a5b
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 781faa7..9217b27 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -5752,12 +5752,6 @@
mStatusBarController.updateVisibilityLw(false /*transientAllowed*/,
mLastSystemUiFlags, mLastSystemUiFlags);
}
- final boolean isKeyguardShowing = isStatusBarKeyguard() && !mKeyguardOccluded;
- if (statusBarExpanded && !isKeyguardShowing && mNavigationBar != null) {
- if (mNavigationBarController.setBarShowingLw(true)) {
- changes |= FINISH_LAYOUT_REDO_LAYOUT;
- }
- }
} else if (mTopFullscreenOpaqueWindowState != null) {
topIsFullscreen = topAppHidesStatusBar;
// The subtle difference between the window for mTopFullscreenOpaqueWindowState