version:2.5

fix:显示图库文件,默认禁止
add:
This commit is contained in:
2022-02-22 14:17:33 +08:00
parent c67024dde5
commit a51b5ff4df
4 changed files with 52 additions and 28 deletions

View File

@@ -298,9 +298,9 @@ public class IconCache extends BaseIconCache {
if (appClassNameList.indexOf(info.getComponentName().getClassName()) == -1) {
icon = BitmapUtils.getRoundedBitmap(mIconProvider.getIcon(info, mIconDpi, flattenDrawable), mContext);
} else {
if (name.equals("com.android.calendar.AllInOneActivity")) {
if ("com.android.calendar.AllInOneActivity".equals(name)) {
icon = BitmapUtils.createCalendarIconBitmap(mContext.getResources().getDrawable(R.drawable.mask), mContext);
} else if (name.equals("com.android.deskclock.DeskClock")) {
} else if ("com.android.deskclock.DeskClock".equals(name)) {
icon = BitmapUtils.getDeskClockIcon(mContext);
} else {
int i = appClassNameList.indexOf(name);