Commit f4bb68d6 authored by CzBiX's avatar CzBiX Committed by Max Lv

Show android package explicitly

parent 41aea5e3
...@@ -67,8 +67,13 @@ class AppManager : AppCompatActivity() { ...@@ -67,8 +67,13 @@ 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 { it.packageName != app.packageName && .filter {
it.requestedPermissions?.contains(Manifest.permission.INTERNET) ?: false } when {
it.packageName == app.packageName -> false
it.packageName == "android" -> true
else -> it.requestedPermissions?.contains(Manifest.permission.INTERNET) ?: false
}
}
this.cachedApps = cachedApps this.cachedApps = cachedApps
cachedApps cachedApps
}.map { }.map {
......
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