Make numFolderRows/Columns accept more values

InvariantDeviceProfile hold values that are not related to current DP in use. Now other classes get the value correctly from DeviceProfile, and each posture can hold different values, making it akin to iconSize.

Fix: 309800141
Test: DeviceProfileResponsiveDumpTest
Test: DeviceProfileResponsiveAlternativeDisplaysDumpTest
Test: DeviceProfileDumpTest
Test: DeviceProfileAlternativeDisplaysDumpTest
Flag: ACONFIG com.android.launcher3.enable_responsive_workspace TEAMFOOD
Change-Id: I32295738585de67205dcd6c8942d08a3d07d169a
This commit is contained in:
Thales Lima
2023-12-01 16:48:19 +00:00
parent d60f56c36e
commit 1faa4edc42
13 changed files with 131 additions and 55 deletions
@@ -96,7 +96,7 @@ public class FolderAnimationManager {
mContext = folder.getContext();
mDeviceProfile = folder.mActivityContext.getDeviceProfile();
mPreviewVerifier = new FolderGridOrganizer(mDeviceProfile.inv);
mPreviewVerifier = new FolderGridOrganizer(mDeviceProfile);
mIsOpening = isOpening;