This commit is contained in:
MorphlingAI 2024-06-16 16:40:51 +08:00 committed by GitHub
commit 743b405c3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ class AppListCacheModule(service: Service) : Module<Unit>(service) {
if (sharedUserId != null && sharedUserId.isNotBlank()) sharedUserId else packageName if (sharedUserId != null && sharedUserId.isNotBlank()) sharedUserId else packageName
private fun reload() { private fun reload() {
val packages = service.packageManager.getInstalledPackages(0) val packages = service.packageManager.getInstalledPackages()
.groupBy { it.uniqueUidName() } .groupBy { it.uniqueUidName() }
.map { (_, v) -> .map { (_, v) ->
val info = v[0] val info = v[0]