From 7a5c698322b645620179d4827ac0977cf0c5c680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 22 Aug 2023 14:45:19 +0200 Subject: [PATCH] Fix vertical centering of icons in folder icon --- .../com/simplemobiletools/launcher/views/HomeScreenGrid.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()