Don't show uninstall for all users
when the only profiles that have the package are hidden in quiet mode Fix: 334041279 Test: atest AppInfoSettingsMoreOptionsTest Test: manual Change-Id: Ic8e594eb1db5bed926783a244a24e24c4435f04e
This commit is contained in:
@@ -175,6 +175,7 @@ private fun ApplicationInfo.isOtherUserHasInstallPackage(
|
||||
packageManagers: IPackageManagers,
|
||||
): Boolean = userManager.aliveUsers
|
||||
.filter { it.id != userId }
|
||||
.filter { !Utils.shouldHideUser(it.userHandle, userManager) }
|
||||
.any { packageManagers.isPackageInstalledAsUser(packageName, it.id) }
|
||||
|
||||
private fun ApplicationInfo.shouldShowAccessRestrictedSettings(context: Context): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user