version:2.1 beta
fix:优化获取桌面图标接口 update:
This commit is contained in:
@@ -927,6 +927,12 @@ public class ApkUtils {
|
||||
this.add("cn.com.bifa.eyeshiely");
|
||||
}};
|
||||
|
||||
public static List aihuaApp = new ArrayList(){{
|
||||
this.add("com.liuyang.jcstudentside");
|
||||
this.add("com.alibaba.android.rimet");
|
||||
this.add("com.tencent.wemeet.app");
|
||||
this.add("com.qi.studycomputer.launcher");
|
||||
}};
|
||||
|
||||
public static void showAllAPP(Context context) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
|
||||
@@ -1381,8 +1381,8 @@ public class JGYUtils {
|
||||
for (ResolveInfo resolveInfo : apps) {
|
||||
String pkg = resolveInfo.activityInfo.packageName;
|
||||
Log.e(TAG, "hideSystemAPP: " + pkg);
|
||||
if (!ApkUtils.isSystemApp(mContext, pkg)) {
|
||||
continue;
|
||||
if (ApkUtils.isSystemApp(mContext, pkg)) {
|
||||
pm.setApplicationEnabledSetting(pkg, PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, 0);
|
||||
}
|
||||
if (!showAppList.contains(pkg)) {
|
||||
pm.setApplicationEnabledSetting(pkg, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 0);
|
||||
@@ -1898,6 +1898,7 @@ public class JGYUtils {
|
||||
|
||||
public void checkDefaultDesktop(String pkg) {
|
||||
String desktopPkg = (String) SPUtils.get(mContext, "default_launcher", "");
|
||||
Log.e(TAG, "checkDefaultDesktop: " + desktopPkg);
|
||||
if (desktopPkg.equalsIgnoreCase(pkg)) {
|
||||
setDefaultDesktop(pkg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user