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

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

Merge "Fix missing dock divider."

parents 14df4a50 ae10080b
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -729,8 +729,18 @@ final class WindowState implements WindowManagerPolicy.WindowState {
            mVisibleFrame.set(mContentFrame);
            mStableFrame.set(mContentFrame);
        } else if (mAttrs.type == TYPE_DOCK_DIVIDER) {
            if (isVisibleLw()) {
                // We don't adjust the dock divider frame for reasons other than performance. The
                // real reason is that if it gets adjusted before it is shown for the first time,
                // it would get size (0, 0). This causes a problem when we finally show the dock
                // divider and try to draw to it. We do set the surface size at that moment to
                // the correct size, but it's too late for the Surface Flinger to make it
                // available for view rendering and as a result the renderer receives size 1, 1.
                // This way we just keep the divider at the original size and Surface Flinger
                // will return the correct value to the renderer.
                mDisplayContent.getDockedDividerController().positionDockedStackedDivider(mFrame);
                mContentFrame.set(mFrame);
            }
        } else {
            mContentFrame.set(Math.max(mContentFrame.left, mFrame.left),
                    Math.max(mContentFrame.top, mFrame.top),