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

Commit c661713a authored by Ng Zhi An's avatar Ng Zhi An
Browse files

Remove isHighEndGfx check

We want the nav bar to be translucent, having a solid black
bar on small gobo devices looks heavy.
The memory impact of removing this check has been accessed
in the referenced bug and is minimal.

Change-Id: Iaa967623fc2252ada268a7045f014a791fe83c29
Fixes: 65024600
Test: runtest frameworks-services
parent 8617e4ec
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -2623,20 +2623,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();