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

Commit 8981377a authored by Jon Miranda's avatar Jon Miranda
Browse files

Do not scale canvas if scale is 1 for predicted app icon animation.

Was not able to repo the initial bug, but this change leaves the
original path unchanged.

Fixes: 374579710
Test: N/A
Flag: EXEMPT bugfix
Change-Id: I91e0235571b0736dcbe70c7730d7c90ec949a13e
parent eb28585e
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);