Make drawer cells square when labels are hidden

This commit is contained in:
Suphon Thanakornpakapong committed 2021-10-20 16:26:24 +07:00
1 parent 911b7aeea4
commit 96fa31a774
1 file changed
+6
@@ -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;
}
}
/**