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

Commit fb704459 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Extend stacks up under status bar"

parents e7af0d28 c5a6e44f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3470,7 +3470,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);
        }