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

Commit 037fd6d9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix for clipped promise icon." into ub-launcher3-dorval-polish

parents 21e69dc1 6db41f1c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -121,11 +121,11 @@ public class PreloadIconDrawable extends FastBitmapDrawable {
    protected void onBoundsChange(Rect bounds) {
        super.onBoundsChange(bounds);
        mTmpMatrix.setScale(
                (bounds.width() - PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE,
                (bounds.height() - PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE);
                (bounds.width() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE,
                (bounds.height() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE);
        mTmpMatrix.postTranslate(
                bounds.left + PROGRESS_WIDTH / 2 + PROGRESS_GAP,
                bounds.top + PROGRESS_WIDTH / 2 + PROGRESS_GAP);
                bounds.left + PROGRESS_WIDTH + PROGRESS_GAP,
                bounds.top + PROGRESS_WIDTH + PROGRESS_GAP);

        mProgressPath.transform(mTmpMatrix, mScaledTrackPath);
        float scale = bounds.width() / PATH_SIZE;