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
2025-01-27 23:30:06 -08:00
committed by Charlie Anderson
parent 1809cb6ff3
commit 4c261f7343
17 changed files with 271 additions and 131 deletions
@@ -233,7 +233,7 @@ public class FolderAnimationManager {
}
play(a, getAnimator(mFolder.mFooter, ALPHA, 0, 1f), footerStartDelay, footerAlphaDuration);
ShapeDelegate shapeDelegate = IconShape.INSTANCE.get(mContext).getShape();
ShapeDelegate shapeDelegate = IconShape.INSTANCE.get(mContext).getFolderShape();
// Create reveal animator for the folder background
play(a, shapeDelegate.createRevealAnimator(
mFolder, startRect, endRect, finalRadius, !mIsOpening));