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

Commit 6b146e84 authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14940431

Change-Id: Ie623a72084cf67d169696bc38ffaa2ea34b243fb
parents f290a87c dd44345c
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 {