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

Commit 4319ddf8 authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

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

am: 7f481760

Change-Id: I3aa5adcd7e16b36c7d614330a68d698210e63954
parents 9862cd02 7f481760
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);
        }
    }