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

Commit 47a343e2 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Scale corner radius when swiping down on a task" into ub-launcher3-master

parents 8e9342f4 c2a13763
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -329,13 +329,14 @@ public class ClipAnimationHelper {
        canvas.concat(mTmpMatrix);
        canvas.translate(mTargetRect.left, mTargetRect.top);

        float scale = mTargetRect.width() / mSourceRect.width();
        float insetProgress = (1 - progress);
        ttv.drawOnCanvas(canvas,
                -mSourceWindowClipInsets.left * insetProgress,
                -mSourceWindowClipInsets.top * insetProgress,
                ttv.getMeasuredWidth() + mSourceWindowClipInsets.right * insetProgress,
                ttv.getMeasuredHeight() + mSourceWindowClipInsets.bottom * insetProgress,
                Utilities.mapRange(progress, mWindowCornerRadius, ttv.getCornerRadius()));
                Utilities.mapRange(progress, mWindowCornerRadius * scale, ttv.getCornerRadius()));
    }

    public RectF getTargetRect() {