diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-07-07 10:05:33 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-07-14 15:55:07 -0700 |
commit | 4e358271d3e7e64adf0562386f97cc0e1d6e4426 (patch) | |
tree | 8956d963daca0925ebb440d22b79660ed10e8ee8 /src/com/android/launcher3/DeviceProfile.java | |
parent | c402a4663f6b035467890b60c2f329a88ba698d1 (diff) | |
download | android_packages_apps_Trebuchet-4e358271d3e7e64adf0562386f97cc0e1d6e4426.tar.gz android_packages_apps_Trebuchet-4e358271d3e7e64adf0562386f97cc0e1d6e4426.tar.bz2 android_packages_apps_Trebuchet-4e358271d3e7e64adf0562386f97cc0e1d6e4426.zip |
Tighten up vertical spacing in landscape all apps.
Bug: 37015359
Bug: 62801588
Change-Id: Ia4bdc2c2b12647cd671cf8a3e7a8defc43863da1
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 6b76cd62f..ca5d8e746 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -326,7 +326,13 @@ public class DeviceProfile { if (isVerticalBarLayout()) { // Always hide the Workspace text with vertical bar layout. iconTextSizePx = 0; - allAppsCellHeightPx += Utilities.calculateTextHeight(allAppsIconTextSizePx); + iconDrawablePaddingPx = 0; + + // Manually compute all apps cell height since workspace cells have less content. + allAppsCellHeightPx = allAppsIconSizePx + allAppsIconDrawablePaddingPx + + Utilities.calculateTextHeight(allAppsIconTextSizePx) + // Top and bottom padding is equal to the drawable padding + + allAppsIconDrawablePaddingPx * 2; } cellWidthPx = iconSizePx + iconDrawablePaddingPx; |