summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorJordan Silva <silvajordan@google.com>2023-06-13 11:21:53 +0100
committerJordan Silva <silvajordan@google.com>2023-06-21 12:18:58 +0100
commit637f4eb2f3332e7ef46a6437c8fb66508475fe4a (patch)
tree3e0ac613a11c4ad2a75d7d70d36fa918145503ad /src/com/android/launcher3/CellLayout.java
parent03951ba556d05bd7026e1b7def4830b5f4d8608b (diff)
downloadLauncher3-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.java3
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,