diff options
author | Jordan Silva <silvajordan@google.com> | 2023-06-13 11:21:53 +0100 |
---|---|---|
committer | Jordan Silva <silvajordan@google.com> | 2023-06-21 12:18:58 +0100 |
commit | 637f4eb2f3332e7ef46a6437c8fb66508475fe4a (patch) | |
tree | 3e0ac613a11c4ad2a75d7d70d36fa918145503ad /src/com/android/launcher3/CellLayout.java | |
parent | 03951ba556d05bd7026e1b7def4830b5f4d8608b (diff) | |
download | Launcher3-637f4eb2f3332e7ef46a6437c8fb66508475fe4a.tar.gz |
Update DeviceProfile to calculate responsive grid for folders
It uses the new responsive folder calculations and specs when responsive grid is enabled. The grid has to have folderSpecsId defined to use the new specifications, otherwise it will use the current scalable grid implementation.
Fix: 284155638
Test: DeviceProfileDumpTest
Test: ResponsiveHomeScreenFolderImageTest
Test: HomeScreenFolderImageTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: I535cff4bb00e969f782447a898230fe2b2c05cc9
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 32421a46e8..64ac84166f 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -382,8 +382,7 @@ public class CellLayout extends ViewGroup { private void resetCellSizeInternal(DeviceProfile deviceProfile) { switch (mContainerType) { case FOLDER: - mBorderSpace = new Point(deviceProfile.folderCellLayoutBorderSpacePx, - deviceProfile.folderCellLayoutBorderSpacePx); + mBorderSpace = new Point(deviceProfile.folderCellLayoutBorderSpacePx); break; case HOTSEAT: mBorderSpace = new Point(deviceProfile.hotseatBorderSpace, |