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
This commit is contained in:
1 parent
03951ba556
commit
637f4eb2f3
8 files changed
+95
-38
No files matched your search
@@ -236,9 +236,9 @@ public class FolderAnimationManager {
|
||||
mFolder, startRect, endRect, finalRadius, !mIsOpening));
|
||||
|
||||
// Create reveal animator for the folder content (capture the top 4 icons 2x2)
|
||||
int width = mDeviceProfile.folderCellLayoutBorderSpacePx
|
||||
int width = mDeviceProfile.folderCellLayoutBorderSpacePx.x
|
||||
+ mDeviceProfile.folderCellWidthPx * 2;
|
||||
int height = mDeviceProfile.folderCellLayoutBorderSpacePx
|
||||
int height = mDeviceProfile.folderCellLayoutBorderSpacePx.y
|
||||
+ mDeviceProfile.folderCellHeightPx * 2;
|
||||
int page = mIsOpening ? mContent.getCurrentPage() : mContent.getDestinationPage();
|
||||
int left = mContent.getPaddingLeft() + page * lp.width;
|
||||
|
||||
Reference in new issue
Block a user