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

Commit dd44345c authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "PiP: Divide up the magnetic percent by 2." into sc-dev

parents 7063bae0 8a8b1f63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -536,8 +536,9 @@ public class PipResizeGestureHandler {
                mPipTaskOrganizer.scheduleFinishResizePip(mLastResizeBounds,
                        PipAnimationController.TRANSITION_DIRECTION_USER_RESIZE, callback);
            }
            final float magnetRadiusPercent = (float) mLastResizeBounds.width() / mMinSize.x / 2.f;
            mPipDismissTargetHandler
                    .setMagneticFieldRadiusPercent((float) mLastResizeBounds.width() / mMinSize.x);
                    .setMagneticFieldRadiusPercent(magnetRadiusPercent);
            mPipUiEventLogger.log(
                    PipUiEventLogger.PipUiEventEnum.PICTURE_IN_PICTURE_RESIZE);
        } else {