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
This commit is contained in:
parent
f603b27000
commit
d00392385d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user