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() {
// Labels and icons can change on configuration (locale, etc.) changes, therefore they are not cached.
val cachedApps = cachedApps ?: pm.getInstalledPackages(PackageManager.GET_PERMISSIONS)
.filter {
when (it.packageName) {
app.packageName -> false
"android" -> true
else -> it.requestedPermissions?.contains(Manifest.permission.INTERNET) == true
}
it.packageName != app.packageName &&
it.requestedPermissions?.contains(Manifest.permission.INTERNET) == true
}
.associateBy { it.packageName }
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