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

Commit b7b11854 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Rounded corners polish"

parents b4b94358 d1436130
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -331,12 +331,13 @@ public class ClipAnimationHelper {
        canvas.translate(mTargetRect.left, mTargetRect.top);

        float insetProgress = (1 - progress);
        float scale = currentRect.width() / mTargetRect.width();
        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() {