Using roundIconRes for loading appInfo icon if launcher's icon is round

Bug: 392145015
Flag: EXEMPT not-supported during overlay change
Test: Verified manually on device
Change-Id: I7aa571e12318c28f8ff373c19a84d4856c57d6c5
This commit is contained in:
Sunny Goyal
2025-01-29 01:14:14 -08:00
parent 1809cb6ff3
commit 2fac3efc38
4 changed files with 37 additions and 2 deletions
@@ -171,6 +171,13 @@ public class ApiWrapper {
return appInfo.sourceDir;
}
/**
* Returns the round icon resource Id if defined by the app
*/
public int getRoundIconRes(@NonNull ApplicationInfo appInfo) {
return 0;
}
private static class NoopDrawable extends ColorDrawable {
@Override
public int getIntrinsicHeight() {