Update IconShape usage to use INSTANCE for context-aware method call

This commit is contained in:
MrSluffy
2024-12-14 16:19:03 +08:00
parent 1db4bb0ee2
commit 2c5cc568be

View File

@@ -139,7 +139,7 @@ public class FolderAdaptiveIcon extends CustomAdaptiveIconDrawable {
Path bgPath = new Path();
int radius = bg.getRadius();
IconShape.getShape().addToPath(
IconShape.INSTANCE.get (icon.getContext()).getShape().addToPath(
bgPath,
dragViewSize.x / 2f - radius,
dragViewSize.y / 2f - radius,