Make drawer cells square when labels are hidden
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user