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

Commit 5e84beeb authored by Garfield Tan's avatar Garfield Tan Committed by Android (Google) Code Review
Browse files

Merge "Forcefully set system window tokens to fullscreen"

parents ef5c33f8 33f8fdc5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.server.wm;

import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER;
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR;

@@ -615,6 +616,12 @@ class WindowToken extends WindowContainer<WindowState> {
            getResolvedOverrideConfiguration().updateFrom(
                    mFixedRotationTransformState.mRotatedOverrideConfiguration);
        }
        if (getTaskDisplayArea() == null) {
            // We only defined behaviors of system windows in fullscreen mode, i.e. windows not
            // contained in a task display area.
            getResolvedOverrideConfiguration().windowConfiguration.setWindowingMode(
                    WINDOWING_MODE_FULLSCREEN);
        }
    }

    @Override