From 949d580199b193eaf7e78d1d4965d3740cd54e4f Mon Sep 17 00:00:00 2001 From: rewqazxv <41326691+rewqazxv@users.noreply.github.com> Date: Sat, 27 May 2023 00:12:32 +0800 Subject: [PATCH] Show all packages --- .../main/java/icu/nullptr/hidemyapplist/util/PackageHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/icu/nullptr/hidemyapplist/util/PackageHelper.kt b/app/src/main/java/icu/nullptr/hidemyapplist/util/PackageHelper.kt index d6ad59bd..e30a1d26 100644 --- a/app/src/main/java/icu/nullptr/hidemyapplist/util/PackageHelper.kt +++ b/app/src/main/java/icu/nullptr/hidemyapplist/util/PackageHelper.kt @@ -69,7 +69,7 @@ object PackageHelper { hmaApp.globalScope.launch { mRefreshing.emit(true) val cache = withContext(Dispatchers.IO) { - val packages = pm.getInstalledPackages(0) + val packages = pm.getInstalledPackages(PackageManager.MATCH_UNINSTALLED_PACKAGES) mutableMapOf().also { for (packageInfo in packages) { if (packageInfo.packageName in Constants.packagesShouldNotHide) continue