fix: align home screen icons based on text size (#6921)

* Align icons based on text size

* chore: Apply suggestions

---------

Co-authored-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Branden GhenaandPun Butrach authored and GitHub committed 2026-06-28 05:40:53 +00:00
1 parent 13920b37f1
commit 61fb6decdf
1 file changed
+4 -2
+4 -2
View File
@@ -1201,6 +1201,10 @@ public class DeviceProfile {
final boolean isVerticalLayout = isVerticalBarLayout();
cellLayoutBorderSpacePx = getCellLayoutBorderSpace(inv, scale);
// Lawnchair: Get initial text size before calculating layout
// This scales offset with text sizing, all the way down to zero
iconTextSizePx *= mTextFactors.getIconTextSizeFactor();
if (mIsResponsiveGrid) {
cellWidthPx = mResponsiveWorkspaceWidthSpec.getCellSizePx();
cellHeightPx = mResponsiveWorkspaceHeightSpec.getCellSizePx();
@@ -1314,8 +1318,6 @@ public class DeviceProfile {
}
}
iconTextSizePx *= mTextFactors.getIconTextSizeFactor();
// All apps
if (mIsResponsiveGrid) {
mAllAppsProfile = AllAppsProfile.Factory.createAllAppsWithResponsive(