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

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

No files matched your search

+4 -1
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;