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

Commit 08f273a2 authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

Merge changes I02f057bb,Ia640ead2 into rvc-dev am: 13be2bc4 am: 8d357a1e am: 0ac3d667

Change-Id: I02c25542bdb0ee7aa88bd2dc678434daee712c37
parents abc26235 0ac3d667
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -346,6 +346,7 @@ public class PipTaskOrganizer extends ITaskOrganizer.Stub {
        final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction();
        mSurfaceTransactionHelper
                .crop(tx, mLeash, destinationBounds)
                .resetScale(tx, mLeash, destinationBounds)
                .round(tx, mLeash, mInPip);
        scheduleFinishResizePip(tx, destinationBounds, TRANSITION_DIRECTION_NONE, null);
    }
+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);