version:4.9
fix: update:更新隐藏图标,增加缓存视频
This commit is contained in:
@@ -153,6 +153,10 @@ public class ApkUtils {
|
||||
}
|
||||
|
||||
for (ApplicationInfo app : appInfos) {
|
||||
if (appIsDisable(context, app.packageName)) {
|
||||
Log.e(TAG, "queryFilterAppInfo: disable = " + app.packageName);
|
||||
continue;
|
||||
}
|
||||
if ((app.flags & ApplicationInfo.FLAG_SYSTEM) > 0)//通过flag排除系统应用,会将电话、短信也排除掉
|
||||
{
|
||||
if (showPackageName.contains(app.packageName)) {
|
||||
@@ -208,6 +212,12 @@ public class ApkUtils {
|
||||
return desktopIcons;
|
||||
}
|
||||
|
||||
private static boolean appIsDisable(Context context, String pkg) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
return pm.getApplicationEnabledSetting(pkg) == PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取第三方应用
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user