mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Tighten up vertical spacing in landscape all apps.
Bug: 37015359 Bug: 62801588 Change-Id: Ia4bdc2c2b12647cd671cf8a3e7a8defc43863da1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user