mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Merge "Calculate all apps cell height based on actual sizes." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8127f13231
@@ -369,8 +369,10 @@ public class DeviceProfile {
|
||||
if (allAppsHasDifferentNumColumns()) {
|
||||
allAppsIconSizePx = ResourceUtils.pxFromDp(inv.allAppsIconSize, mInfo.metrics);
|
||||
allAppsIconTextSizePx = Utilities.pxFromSp(inv.allAppsIconTextSize, mInfo.metrics);
|
||||
allAppsCellHeightPx = getCellSize(inv.numAllAppsColumns, inv.numAllAppsColumns).y;
|
||||
allAppsIconDrawablePaddingPx = iconDrawablePaddingOriginalPx;
|
||||
// We use 4 below to ensure labels are closer to their corresponding icon.
|
||||
allAppsCellHeightPx = Math.round(allAppsIconSizePx + allAppsIconTextSizePx
|
||||
+ (4 * allAppsIconDrawablePaddingPx));
|
||||
} else {
|
||||
allAppsIconSizePx = iconSizePx;
|
||||
allAppsIconTextSizePx = iconTextSizePx;
|
||||
|
||||
Reference in New Issue
Block a user