OSDN Git Service

Remove obscure check that was always true
authorJorim Jaggi <jjaggi@google.com>
Wed, 3 Apr 2019 12:50:57 +0000 (14:50 +0200)
committerJorim Jaggi <jjaggi@google.com>
Wed, 3 Apr 2019 13:58:14 +0000 (13:58 +0000)
This condition never made any sense because we checked the
systemUiVisibility field for a WindowManager flag. Instead of
trying to fix it, let's just remove the check to keep the
behavior.

Test: boots
Bug: 129751541
Change-Id: Ib0ace4d47f5623b32430a8a7e4f25f5a259451ea

core/java/com/android/internal/policy/DecorView.java

index ca5db94..625814d 100644 (file)
@@ -1143,7 +1143,6 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
         // If we didn't request fullscreen layout, but we still got it because of the
         // mForceWindowDrawsStatusBarBackground flag, also consume top inset.
         boolean consumingStatusBar = (sysUiVisibility & SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == 0
-                && (sysUiVisibility & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) == 0
                 && (attrs.flags & FLAG_LAYOUT_IN_SCREEN) == 0
                 && (attrs.flags & FLAG_LAYOUT_INSET_DECOR) == 0
                 && mForceWindowDrawsStatusBarBackground