Skip to content

Commit

Permalink
Hide disabled apps
Browse files Browse the repository at this point in the history
This affects nothing on my ends, but better if affects.

https://developer.android.com/reference/android/content/pm/ApplicationInfo#enabled

As long as beliving the document, when enabled attr is false, the app
can be ignored totally.
  • Loading branch information
nhirokinet committed Sep 8, 2021
1 parent 2188f15 commit 1bd2a5c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ private void load(Context context) {

List <ApplicationInfo> applicationInfoList = packageManager.getInstalledApplications(0);
for (ApplicationInfo applicationInfo : applicationInfoList) {
if (! applicationInfo.enabled) {
continue;
}

PackageInfo packageInfo;
try {
Expand Down

0 comments on commit 1bd2a5c

Please sign in to comment.