Update folder previews to new specs

Bug: 403616844
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: visually comparing against spec

Change-Id: I671b3de7d4ac574122ee3a33451f6cb1d6155f29
This commit is contained in:
Charlie Anderson committed 2025-04-03 16:42:35 -07:00
1 parent 243e95fd5f
commit 6f5f8cac25
10 files changed
+63 -125

No files matched your search

+2 -2
View File
@@ -25,6 +25,7 @@ import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_LANDS
import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_PORTRAIT;
import static com.android.launcher3.Utilities.dpiFromPx;
import static com.android.launcher3.Utilities.pxFromSp;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.ICON_OVERLAP_FACTOR;
import static com.android.launcher3.icons.IconNormalizer.ICON_VISIBLE_AREA_FACTOR;
import static com.android.launcher3.testing.shared.ResourceUtils.INVALID_RESOURCE_HANDLE;
import static com.android.launcher3.testing.shared.ResourceUtils.pxFromDp;
@@ -52,7 +53,6 @@ import androidx.core.content.res.ResourcesCompat;
import com.android.launcher3.CellLayout.ContainerType;
import com.android.launcher3.DevicePaddings.DevicePadding;
import com.android.launcher3.folder.ClippedFolderIconLayoutRule;
import com.android.launcher3.graphics.ThemeManager;
import com.android.launcher3.icons.DotRenderer;
import com.android.launcher3.model.data.ItemInfo;
@@ -1231,7 +1231,7 @@ public class DeviceProfile {
}
private int getIconSizeWithOverlap(int iconSize) {
return (int) Math.ceil(iconSize * ClippedFolderIconLayoutRule.getIconOverlapFactor());
return (int) Math.ceil(iconSize * ICON_OVERLAP_FACTOR);
}
/**