packages/apps/Taskbar
修订版 | c0bba189f627fd47c61e79b271b6ca71d5362275 (tree) |
---|---|
时间 | 2020-04-13 21:08:31 |
作者 | Braden Farmer <farmerbb@gmai...> |
Commiter | Braden Farmer |
Expose BitmapDrawable as the return type for IconCache.getIcon()
@@ -55,11 +55,11 @@ public class IconCache { | ||
55 | 55 | return theInstance; |
56 | 56 | } |
57 | 57 | |
58 | - public Drawable getIcon(Context context, LauncherActivityInfo appInfo) { | |
58 | + public BitmapDrawable getIcon(Context context, LauncherActivityInfo appInfo) { | |
59 | 59 | return getIcon(context, context.getPackageManager(), appInfo); |
60 | 60 | } |
61 | 61 | |
62 | - public Drawable getIcon(Context context, PackageManager pm, LauncherActivityInfo appInfo) { | |
62 | + public BitmapDrawable getIcon(Context context, PackageManager pm, LauncherActivityInfo appInfo) { | |
63 | 63 | UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); |
64 | 64 | String name = appInfo.getComponentName().flattenToString() + ":" + userManager.getSerialNumberForUser(appInfo.getUser()); |
65 | 65 |