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

Commit 79be66a7 authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Correctly render rows and columns in the grid options icons

The x and y coordinates were flipped so we were rendering rows as
columns and viceversa

Fixes: 289106258
Test: visually verified the grid options icon (see bug)
Change-Id: I4e577862004ea950eda73534c923780847a02eb0
parent 498ba14b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ public class GridTileDrawable extends Drawable {
        for (int r = 0; r < mRows; r++) {
            for (int c = 0; c < mCols; c++) {
                int saveCount = canvas.save();
                float x = (float) ((r * size / mRows) + SPACE_BETWEEN_ICONS);
                float y = (float) ((c * size / mCols) + SPACE_BETWEEN_ICONS);
                float y = (float) ((r * size / mRows) + SPACE_BETWEEN_ICONS);
                float x = (float) ((c * size / mCols) + SPACE_BETWEEN_ICONS);
                canvas.translate(x, y);
                canvas.drawPath(mTransformedPath, mPaint);
                canvas.restoreToCount(saveCount);