Commit 2e0a94dc authored by Mygod's avatar Mygod Committed by Max Lv

Revert "Show android package explicitly"

This reverts commit 64e9ad3a3c2c93172780a4bddabe810efcb5375c.
parent 8394899f
...@@ -72,11 +72,8 @@ class AppManager : AppCompatActivity() { ...@@ -72,11 +72,8 @@ class AppManager : AppCompatActivity() {
// Labels and icons can change on configuration (locale, etc.) changes, therefore they are not cached. // Labels and icons can change on configuration (locale, etc.) changes, therefore they are not cached.
val cachedApps = cachedApps ?: pm.getInstalledPackages(PackageManager.GET_PERMISSIONS) val cachedApps = cachedApps ?: pm.getInstalledPackages(PackageManager.GET_PERMISSIONS)
.filter { .filter {
when (it.packageName) { it.packageName != app.packageName &&
app.packageName -> false it.requestedPermissions?.contains(Manifest.permission.INTERNET) == true
"android" -> true
else -> it.requestedPermissions?.contains(Manifest.permission.INTERNET) == true
}
} }
.associateBy { it.packageName } .associateBy { it.packageName }
this.cachedApps = cachedApps this.cachedApps = cachedApps
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment