summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2018-03-19 17:47:12 +0100
committer Adrian Roos <roosa@google.com> 2018-03-19 17:51:36 +0100
commit0c124c6ad79b1b7a481422e27853655d228eb2f8 (patch)
tree9f58b2bee941594b9d90584d5022c3ba8d6d3572
parent23df3a3cd3c301533b25e074c509262610c2f7d1 (diff)
DisplayCutout: Correctly apply light status bar
Fixes an issue where light navigation bar was not properly applied in landscape where the letterbox does not overlap with the status bar. This removes a hack that is no longer necessary now that we track exactly if the letterbox overlaps the system bars and put them into black-background mode if so. Bug: 72696928 Test: Open API Demos > Activity > Max Aspect Ratio > Any; rotate to landscape, verify that status bar is light. Change-Id: Ifc6355e2eeadf0821c9ac82ce78c812916de5034
-rw-r--r--services/core/java/com/android/server/policy/PhoneWindowManager.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index c997d6ef01d1..3cdb130d5efe 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -8034,11 +8034,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// If the top fullscreen-or-dimming window is also the top fullscreen, respect
// its light flag.
vis &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
- if (!statusColorWin.isLetterboxedForDisplayCutoutLw()) {
- // Only allow white status bar if the window was not letterboxed.
- vis |= PolicyControl.getSystemUiVisibility(statusColorWin, null)
- & View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
- }
+ vis |= PolicyControl.getSystemUiVisibility(statusColorWin, null)
+ & View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
} else if (statusColorWin != null && statusColorWin.isDimming()) {
// Otherwise if it's dimming, clear the light flag.
vis &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;