mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Revert "Revert "Reverting folder cell width on portrait phones.""
This reverts commit 1974e98f5e.
Change-Id: I7c5d86de187989c085f676933ce3f1cbd57ed8a7
This commit is contained in:
@@ -245,7 +245,9 @@ public class DeviceProfile {
|
||||
hotseatCellHeightPx = iconSizePx;
|
||||
|
||||
// Folder
|
||||
folderCellWidthPx = Math.min(cellWidthPx + 6 * edgeMarginPx,
|
||||
int folderCellPadding = isTablet || isLandscape ? 6 * edgeMarginPx : 3 * edgeMarginPx;
|
||||
// Don't let the folder get too close to the edges of the screen.
|
||||
folderCellWidthPx = Math.min(cellWidthPx + folderCellPadding,
|
||||
(availableWidthPx - 4 * edgeMarginPx) / inv.numFolderColumns);
|
||||
folderCellHeightPx = cellHeightPx + edgeMarginPx;
|
||||
folderBackgroundOffset = -edgeMarginPx;
|
||||
|
||||
Reference in New Issue
Block a user