diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt index 5ec585d..7b68577 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt @@ -1522,7 +1522,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel val scaledCellSize = (iconSize.toFloat() / folderColumnCount) val scaledGap = scaledCellSize / 5f val scaledIconSize = (iconSize - (folderColumnCount + 1) * scaledGap) / folderColumnCount - val extraYMargin = if (folderRowCount < folderColumnCount) scaledIconSize / 2 else 0f + val extraYMargin = if (folderRowCount < folderColumnCount) (scaledIconSize + scaledGap) / 2 else 0f items.forEach { val (row, column) = it.getPositionInFolder(this@generateFolderDrawable) val drawableX = (scaledGap + column * scaledIconSize + column * scaledGap).toInt()