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

Commit 4f901f60 authored by Nader Jawad's avatar Nader Jawad Committed by Android (Google) Code Review
Browse files

Merge "Updated EdgeEffect stretch distance" into sc-dev

parents d37bdb11 10afe4ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ public class EdgeEffect {
    private long mStartTime;
    private float mDuration;
    private float mStretchIntensity = DEFAULT_MAX_STRETCH_INTENSITY;
    private float mStretchDistanceFraction = 0.1f;
    private float mStretchDistanceFraction = 1f;
    private float mStretchDistance = -1f;

    private final Interpolator mInterpolator = new DecelerateInterpolator();
@@ -656,7 +656,7 @@ public class EdgeEffect {
                    //  for now leverage placeholder logic if no stretch distance is provided to
                    //  consume the displacement ratio times the minimum of the width or height
                    mStretchDistance > 0 ? mStretchDistance :
                            (mStretchDistanceFraction * Math.min(mWidth, mHeight))
                            (mStretchDistanceFraction * Math.max(mWidth, mHeight))
            );
        }