feat: Android 11 support
This commit is contained in:
1 parent
0ddb32979e
commit
a2edbcbe75
21 files changed
+155
-62
No files matched your search
@@ -776,7 +776,11 @@ public final class Utilities {
|
||||
if (activityInfo == null) {
|
||||
return null;
|
||||
}
|
||||
mainIcon = appState.getIconCache().getFullResIcon(activityInfo.getActivityInfo());
|
||||
if (Utilities.ATLEAST_S) {
|
||||
mainIcon = appState.getIconCache().getFullResIcon(activityInfo.getActivityInfo());
|
||||
} else {
|
||||
mainIcon = appState.getIconCache().getFullResIcon(activityInfo.getComponentName().getPackageName());
|
||||
}
|
||||
} else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) {
|
||||
List<ShortcutInfo> siList = ShortcutKey.fromItemInfo(info)
|
||||
.buildRequest(context)
|
||||
|
||||
Reference in new issue
Block a user