How to find the current Icon Shape of apps?

493 Views Asked by At

I currently load app icons clipped to their correct shapes using:

context.packageManager.getApplicationIcon(packageName)

But I'm looking into adapting a custom icon shape in my app based on user's app icon shape (Square, Teardrop, Squircle, etc) preference and I wonder if there's a way to find what the user's app icon shape preference is programmatically.

1

There are 1 best solutions below

0
On

I think you should use adaptive icons. They do all that stuff for you.