Merge "Folder cell should match grid cell aspect ratio if isScalableGrid is true." into sc-dev

This commit is contained in:
Jonathan Miranda
2021-03-31 19:15:30 +00:00
committed by Android (Google) Code Review
2 changed files with 29 additions and 14 deletions

View File

@@ -212,7 +212,10 @@ public class CellLayout extends ViewGroup {
mActivity = ActivityContext.lookupContext(context);
DeviceProfile deviceProfile = mActivity.getDeviceProfile();
mBorderSpacing = deviceProfile.cellLayoutBorderSpacingPx;
mBorderSpacing = mContainerType == FOLDER
? deviceProfile.folderCellLayoutBorderSpacingPx
: deviceProfile.cellLayoutBorderSpacingPx;
mCellWidth = mCellHeight = -1;
mFixedCellWidth = mFixedCellHeight = -1;