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

Commit c5a6e44f authored by Craig Mautner's avatar Craig Mautner
Browse files

Extend stacks up under status bar

Retain compatibility with earlier behavior. Fixes bug 8685941.

Change-Id: Ida800a2476ba3a18cd97deccbc65c8a02739d118
parent 0efd4f02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3459,7 +3459,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                            }
                        }});
                    } else {
                        if (DEBUG_LAYOUT) Slog.v(TAG, "Policy preventing status bar from hiding");
                        if (DEBUG_LAYOUT) Slog.v(TAG, "Status bar already hiding");
                    }
                } else {
                    if (DEBUG_LAYOUT) Slog.v(TAG, "** SHOWING status bar: top is not fullscreen");
+8 −8
Original line number Diff line number Diff line
@@ -8605,7 +8605,7 @@ public class WindowManagerService extends IWindowManager.Stub
                    || winAnimator.mSurfaceResized
                    || configChanged) {
                if (DEBUG_RESIZE || DEBUG_ORIENTATION) {
                    Slog.v(TAG, "Resize reasons: "
                    Slog.v(TAG, "Resize reasons for w=" + w + ": "
                            + " contentInsetsChanged=" + w.mContentInsetsChanged
                            + " " + w.mContentInsets.toShortString()
                            + " visibleInsetsChanged=" + w.mVisibleInsetsChanged
+7 −0
Original line number Diff line number Diff line
@@ -298,6 +298,10 @@ final class WindowState implements WindowManagerPolicy.WindowState {
    /** When true this window can be displayed on screens owther than mOwnerUid's */
    private boolean mShowToOwnerOnly;

    /** When true this window is at the top of the screen and should be layed out to extend under
     * the status bar */
    boolean mUnderStatusBar = true;

    WindowState(WindowManagerService service, Session s, IWindow c, WindowToken token,
           WindowState attachedWindow, int appOp, int seq, WindowManager.LayoutParams a,
           int viewVisibility, final DisplayContent displayContent) {
@@ -434,6 +438,9 @@ final class WindowState implements WindowManagerPolicy.WindowState {

        if (mAppToken != null) {
            mContainingFrame.set(getStackBounds());
            if (mUnderStatusBar) {
                mContainingFrame.top = pf.top;
            }
        } else {
            mContainingFrame.set(pf);
        }