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:
committed by
Charlie Anderson
parent
1809cb6ff3
commit
4c261f7343
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user