Commit 55003be6 authored by Max Lv's avatar Max Lv

Revert "Revert "Show android package explicitly""

This reverts commit 02b915ffbce8236c74747191a97b49e2bfd481cf.
parent a319dff4
...@@ -73,8 +73,11 @@ class AppManager : AppCompatActivity() { ...@@ -73,8 +73,11 @@ 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 {
it.packageName != app.packageName && when (it.packageName) {
it.requestedPermissions?.contains(Manifest.permission.INTERNET) == true app.packageName -> false
"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