From 558c44b6e979e3b4492b3696b5e0e4f7aa9a3d33 Mon Sep 17 00:00:00 2001 From: Administrator <981964879@qq.com> Date: Thu, 26 Nov 2020 15:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8C=85=E5=90=8D=E5=92=8C?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/android/uiuios/icons/IconCache.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/com/android/uiuios/icons/IconCache.java b/src/com/android/uiuios/icons/IconCache.java index 0227334..3783788 100644 --- a/src/com/android/uiuios/icons/IconCache.java +++ b/src/com/android/uiuios/icons/IconCache.java @@ -237,20 +237,22 @@ public class IconCache extends BaseIconCache { this.add("com.android.calculator2.Calculator");//计算器 this.add("com.android.calendar.AllInOneActivity");//日历 this.add("com.android.camera.CameraLauncher");//相机 + this.add("com.mediatek.camera.CameraLauncher");//相机 this.add("com.android.contacts.activities.PeopleActivity");//通讯录 this.add("com.android.deskclock.DeskClock");//时钟 this.add("com.android.dialer.DialtactsActivity");//电话 + this.add("com.android.dialer.main.impl.MainActivity");//电话 this.add("com.android.gallery3d.app.GalleryActivity");//图库 this.add("com.android.mms.ui.BootActivity");//信息 this.add("com.android.music.MusicBrowserActivity");//音乐 this.add("com.android.providers.downloads.ui.DownloadList");//下载 - this.add("com.android.documentsui.LauncherActivity");//下载 this.add("com.android.quicksearchbox.SearchActivity");//搜索 this.add("com.android.settings.Settings");//设置 this.add("com.android.soundrecorder.SoundRecorder");//录音机 this.add("com.android.stk.StkMain");//sim卡 this.add("com.android.vdieo");//视频 this.add("com.mediatek.filemanager.FileManagerOperationActivity");//文件管理 + this.add("com.android.documentsui.LauncherActivity");//下载 this.add("com.mediatek.fmradio.FmRadioActivity");//收音机 this.add("com.android.fmradio.FmMainActivity");//收音机 this.add("com.android.email.activity.Welcome");//电子邮件 @@ -262,22 +264,24 @@ public class IconCache extends BaseIconCache { this.add("com_android_calculator2"); this.add("com_android_calendar"); this.add("com_android_camera"); + this.add("com_android_camera"); this.add("com_android_contacts"); this.add("com_android_deskclock"); this.add("com_android_dialer"); + this.add("com_android_dialer"); this.add("com_android_gallery3d_app"); this.add("com_android_mms_ui"); this.add("com_android_music"); this.add("com_android_providers_downloads_ui"); - this.add("com_android_providers_downloads_ui"); this.add("com_android_quicksearchbox"); this.add("com_android_settings"); this.add("com_android_soundrecorder"); this.add("com_android_stk_stkmain"); this.add("com_android_vdieo"); this.add("com_mediatek_filemanager"); - this.add("com_android_fmradio"); - this.add("com_android_fmradio");//收音机 + this.add("com_mediatek_filemanager"); + this.add("com_mediatek_fmradio"); + this.add("com_mediatek_fmradio");//收音机 this.add("com_android_email"); }}; @@ -288,12 +292,13 @@ public class IconCache extends BaseIconCache { public Drawable getFullResIcon(LauncherActivityInfo info, boolean flattenDrawable) { //此处修改根据应用包名获取图标 Drawable icon = null; + if (null != info) { + String name = info.getComponentName().getClassName(); + Log.e("fht", "getDeskClockIcon:"+name); if (appClassNameList.indexOf(info.getComponentName().getClassName()) == -1) { icon = BitmapUtils.getRoundedBitmap(mIconProvider.getIcon(info, mIconDpi, flattenDrawable), mContext); } else { - String name = info.getComponentName().getClassName(); - Log.e("fht", "getDeskClockIcon:"+name); if (name.equals("com.android.calendar.AllInOneActivity")) { icon = BitmapUtils.createCalendarIconBitmap(mContext.getResources().getDrawable(R.drawable.mask), mContext); } else if (name.equals("com.android.deskclock.DeskClock")) {