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

Commit 7f481760 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixes landscape minimized bounds for launcher hiding widget control" into oc-dev

parents bc13f717 a9e173df
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -191,12 +191,16 @@ public class DockedStackDividerController implements DimLayerUser {
                mTmpRect);
        int dividerSize = mDividerWindowWidth - 2 * mDividerInsets;
        Configuration configuration = mDisplayContent.getConfiguration();
        // The offset in the left (landscape)/top (portrait) is calculated with the minimized
        // offset value with the divider size and any system insets in that direction.
        if (configuration.orientation == Configuration.ORIENTATION_PORTRAIT) {
            outBounds.set(0, mTaskHeightInMinimizedMode + dividerSize + mTmpRect.top,
                    di.logicalWidth, di.logicalHeight);
        } else {
            outBounds.set(mTaskHeightInMinimizedMode + dividerSize + mTmpRect.left, 0,
                    di.logicalWidth, di.logicalHeight);
            // In landscape append the left position with the statusbar height to match the
            // minimized size height in portrait mode.
            outBounds.set(mTaskHeightInMinimizedMode + dividerSize + mTmpRect.left + mTmpRect.top,
                    0, di.logicalWidth, di.logicalHeight);
        }
    }