diff options
Diffstat (limited to 'src/com/android/launcher3/util/GridOccupancy.java')
-rw-r--r-- | src/com/android/launcher3/util/GridOccupancy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/util/GridOccupancy.java b/src/com/android/launcher3/util/GridOccupancy.java index 3f5f0b4ed..6a10b0aa5 100644 --- a/src/com/android/launcher3/util/GridOccupancy.java +++ b/src/com/android/launcher3/util/GridOccupancy.java @@ -77,7 +77,7 @@ public class GridOccupancy { public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { if (cellX < 0 || cellY < 0) return; for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { - for (int y = cellY; y < cellY + spanY && y < mCountX; y++) { + for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { cells[x][y] = value; } } |