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

Commit 2561afac authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Calculate all apps cell height based on actual sizes." into rvc-dev am:...

Merge "Calculate all apps cell height based on actual sizes." into rvc-dev am: 8127f132 am: e8e68000

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152234

Change-Id: Idb2ccc0b50e0a382af642a2b244e079df458b32f
parents f0b6e2a6 e8e68000
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -369,8 +369,10 @@ public class DeviceProfile {
        if (allAppsHasDifferentNumColumns()) {
            allAppsIconSizePx = ResourceUtils.pxFromDp(inv.allAppsIconSize, mInfo.metrics);
            allAppsIconTextSizePx = Utilities.pxFromSp(inv.allAppsIconTextSize, mInfo.metrics);
            allAppsCellHeightPx = getCellSize(inv.numAllAppsColumns, inv.numAllAppsColumns).y;
            allAppsIconDrawablePaddingPx = iconDrawablePaddingOriginalPx;
            // We use 4 below to ensure labels are closer to their corresponding icon.
            allAppsCellHeightPx = Math.round(allAppsIconSizePx + allAppsIconTextSizePx
                    + (4 * allAppsIconDrawablePaddingPx));
        } else {
            allAppsIconSizePx = iconSizePx;
            allAppsIconTextSizePx = iconTextSizePx;