Merge "Hide mainline module apps in settings."

This commit is contained in:
Doris Ling
2019-01-24 20:50:03 +00:00
committed by Android (Google) Code Review
5 changed files with 109 additions and 1 deletions

View File

@@ -314,6 +314,9 @@ public class RecentAppsPreferenceController extends AbstractPreferenceController
Log.d(TAG, "System package, skipping " + pkgName);
return false;
}
if (AppUtils.isHiddenSystemModule(mContext, pkgName)) {
return false;
}
final Intent launchIntent = new Intent().addCategory(Intent.CATEGORY_LAUNCHER)
.setPackage(pkgName);