diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 69fbb242fc..b7fe20689d 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -540,6 +540,12 @@ public class DeviceProfile { int topBottomPadding = textHeight; allAppsCellHeightPx = allAppsIconSizePx + allAppsIconDrawablePaddingPx + textHeight + (topBottomPadding * 2); + if (allAppsIconTextSizePx == 0) { + int leftRightPadding = desiredWorkspaceLeftRightMarginPx + cellLayoutPaddingLeftRightPx; + int drawerWidth = availableWidthPx - leftRightPadding * 2; + allAppsCellHeightPx = drawerWidth / inv.numAllAppsColumns; + allAppsIconDrawablePaddingPx = 0; + } } /**