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

Commit 406585a7 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Reenable colored bars for multiwindow

Fix the previous bug that caused that we needed to disable colored bars
by only forcing the layout fullscreen flag for windows that would like
to be laid out with MATCH_PARENT.

Bug: 26050571
Bug: 24365214
Change-Id: I4f197ae5e2bf042980f5e8dc9eb852843af9859c
parent fc14bc70
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1594,10 +1594,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        mScreenshotChordEnabled = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_enableScreenshotChord);
        // TODO(b/26050571): This can be only reenabled, if there are measure to prevent the alert
        // windows from being fullscreen. Please consult the bug before enabling.
        mForceWindowDrawsStatusBarBackground = false; // mContext.getResources().getBoolean(
                //R.bool.config_forceWindowDrawsStatusBarBackground);
        mForceWindowDrawsStatusBarBackground = mContext.getResources().getBoolean(
                R.bool.config_forceWindowDrawsStatusBarBackground);

        mGlobalKeyManager = new GlobalKeyManager(mContext);

@@ -2065,7 +2063,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                attrs.subtreeSystemUiVisibility |= View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
            }
            if ((attrs.flags & FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) != 0
                    || mForceWindowDrawsStatusBarBackground) {
                    || (mForceWindowDrawsStatusBarBackground
                            && attrs.height == MATCH_PARENT && attrs.width == MATCH_PARENT)) {
                attrs.subtreeSystemUiVisibility |= View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
            }
        }