Fixing icon shape not properly clipped

> Using ShapeDelegate for icon clipping
> Creating ShapeDelegate based on the current icon shape
> Defining different shape delegates for icon and folder
> Updating preview rendering to use dagger graph
> Adding tests for all icon shapes

Bug: 392145015
Test: atest IconShapesProviderTest
Flag: com.android.launcher3.enable_launcher_icon_shapes

Change-Id: Ic9f287e2a6fef2aad18ba224404de58a64da0bb3
This commit is contained in:
Sunny Goyal authored and Charlie Anderson committed 2025-01-29 16:24:38 +00:00
1 parent 1809cb6ff3
commit 4c261f7343
17 files changed
+271 -131

No files matched your search

+1 -1
View File
@@ -873,7 +873,7 @@ public class DeviceProfile {
if (renderer == null) {
renderer = new DotRenderer(
size,
IconShape.INSTANCE.get(context).getShapeOverridePath(DEFAULT_DOT_SIZE),
IconShape.INSTANCE.get(context).getShape().getPath(DEFAULT_DOT_SIZE),
DEFAULT_DOT_SIZE);
cache.put(size, renderer);
}