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

Commit 687789be authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Only create surface when showing window if it destroys it when hiding."

parents 3782797a 55149303
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,7 @@ public final class InputWindowHandle {
                .append(", frame=[").append(frameLeft).append(",").append(frameTop).append(",")
                .append(", frame=[").append(frameLeft).append(",").append(frameTop).append(",")
                        .append(frameRight).append(",").append(frameBottom).append("]")
                        .append(frameRight).append(",").append(frameBottom).append("]")
                .append(", touchableRegion=").append(touchableRegion)
                .append(", touchableRegion=").append(touchableRegion)
                .append(", visible=").append(visible)
                .toString();
                .toString();


    }
    }
+3 −2
Original line number Original line Diff line number Diff line
@@ -1605,8 +1605,9 @@ final class WindowState implements WindowManagerPolicy.WindowState {
            // Already showing.
            // Already showing.
            return false;
            return false;
        }
        }
        if (!mHasSurface) {
        if (!mHasSurface && mDestroySurfaceWhenHidden) {
            mDestroying = false;
            // This is a window that doesn't retain the surface when it's hidden, so immediately
            // when we want to show it again, we need to create the surface for it.
            mWinAnimator.createSurfaceLocked();
            mWinAnimator.createSurfaceLocked();
        }
        }
        if (DEBUG_VISIBILITY) Slog.v(TAG, "Policy visibility true: " + this);
        if (DEBUG_VISIBILITY) Slog.v(TAG, "Policy visibility true: " + this);