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

Commit 9acabb81 authored by Jonathan Miranda's avatar Jonathan Miranda Committed by Android (Google) Code Review
Browse files

Merge "Fix IllegalArgumentException for Float.NaN in ClipIconView."

parents e631b759 8f09aa34
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -161,6 +161,11 @@ public class ClipIconView extends View implements ClipPathView {
        float scaleY = rect.height() / minSize;
        float scale = Math.max(1f, Math.min(scaleX, scaleY));

        if (Float.isNaN(scale)) {
            // Views are no longer laid out, do not update.
            return;
        }

        update(rect, progress, shapeProgressStart, cornerRadius, isOpening, scale,
                minSize, lp, isVerticalBarLayout, dp);