Revert "Reverting folder cell width on portrait phones."

am: 1974e98f5e

* commit '1974e98f5ec4713e50ba64ec32a7607c92ddce9b':
  Revert "Reverting folder cell width on portrait phones."
This commit is contained in:
Tony Wickham
2015-11-12 23:52:34 +00:00
committed by android-build-merger

View File

@@ -245,9 +245,7 @@ public class DeviceProfile {
hotseatCellHeightPx = iconSizePx;
// Folder
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,
folderCellWidthPx = Math.min(cellWidthPx + 6 * edgeMarginPx,
(availableWidthPx - 4 * edgeMarginPx) / inv.numFolderColumns);
folderCellHeightPx = cellHeightPx + edgeMarginPx;
folderBackgroundOffset = -edgeMarginPx;