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

Commit d0039238 authored by Ben Lin's avatar Ben Lin
Browse files

PIP resize: Set starting orientation correctly.

This used to be always true as landscape, which is not always the case.

Bug: 147361175
Test: Manual
Change-Id: I02f057bb963a76ad9691e7d83bc145e94df1f9f0
parent f603b270
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -208,7 +208,8 @@ public class PipResizeGestureHandler {
                    final Rect currentPipBounds = mMotionHelper.getBounds();
                    mLastResizeBounds.set(TaskResizingAlgorithm.resizeDrag(ev.getX(), ev.getY(),
                            mDownPoint.x, mDownPoint.y, currentPipBounds, mCtrlType, mMinSize.x,
                            mMinSize.y, mMaxSize, true, true));
                            mMinSize.y, mMaxSize, true,
                            mLastDownBounds.width() > mLastDownBounds.height()));
                    mPipBoundsHandler.transformBoundsToAspectRatio(mLastResizeBounds);
                    mPipTaskOrganizer.scheduleUserResizePip(mLastDownBounds, mLastResizeBounds,
                            null);