Merge "Fix AppButtonPreferenceControllerTest" into rvc-dev am: 6d6e0f45b2
am: 2ae7c371cb
am: 225007141d
am: 8a20a19b82
Change-Id: I81cfd1e401042001cc5cdc39ee0e132f1e043fcf
This commit is contained in:
@@ -396,7 +396,7 @@ public class AppButtonsPreferenceController extends BasePreferenceController imp
|
||||
// We don't allow uninstalling DO/PO on *any* users if it's a system app, because
|
||||
// "uninstall" is actually "downgrade to the system version + disable", and "downgrade"
|
||||
// will clear data on all users.
|
||||
if (Utils.isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) {
|
||||
if (isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) {
|
||||
if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) {
|
||||
enabled = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user