From cd5046c382de9e7c8acabcdf91b5f1d24bd4fd23 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Wed, 3 Apr 2019 14:50:57 +0200 Subject: [PATCH] Remove obscure check that was always true 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/core/java/com/android/internal/policy/DecorView.java b/core/java/com/android/internal/policy/DecorView.java index ca5db940a4d0..625814ddc4c7 100644 --- a/core/java/com/android/internal/policy/DecorView.java +++ b/core/java/com/android/internal/policy/DecorView.java @@ -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 -- 2.11.0