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

Commit b85a1fdf authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not scale canvas if scale is 1 for predicted app icon animation." into main

parents 05958c0d 8981377a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -418,7 +418,9 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView {
        mIconRingPaint.setColor(RING_SHADOW_COLOR);
        mIconRingPaint.setMaskFilter(mShadowFilter);
        int count = canvas.save();
        if (Float.compare(1, mRingScale) != 0) {
            canvas.scale(mRingScale, mRingScale, canvas.getWidth() / 2f, canvas.getHeight() / 2f);
        }
        canvas.drawPath(mRingPath, mIconRingPaint);
        mIconRingPaint.setColor(mPlateColor);
        mIconRingPaint.setMaskFilter(null);