Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63baf580 authored by Zhi An Ng's avatar Zhi An Ng Committed by android-build-merger
Browse files

Merge "Remove isHighEndGfx check" into oc-mr1-dev am: 848fa6c2

am: e0901d9e

Change-Id: I7a77d5b16226fd1bea9f37623af8226255742dc6
parents 2c770a08 e0901d9e
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -2627,20 +2627,17 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            attrs.privateFlags &= ~WindowManager.LayoutParams.PRIVATE_FLAG_KEYGUARD;
        }

        if (ActivityManager.isHighEndGfx()) {
        if ((attrs.flags & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) != 0) {
            attrs.subtreeSystemUiVisibility |= View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
        }
        final boolean forceWindowDrawsStatusBarBackground =
                    (attrs.privateFlags & PRIVATE_FLAG_FORCE_DRAW_STATUS_BAR_BACKGROUND)
                            != 0;
                (attrs.privateFlags & PRIVATE_FLAG_FORCE_DRAW_STATUS_BAR_BACKGROUND) != 0;
        if ((attrs.flags & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) != 0
                || forceWindowDrawsStatusBarBackground
                        && attrs.height == MATCH_PARENT && attrs.width == MATCH_PARENT) {
            attrs.subtreeSystemUiVisibility |= View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
        }
    }
    }

    void readLidState() {
        mLidState = mWindowManagerFuncs.getLidState();