Merge "Fix bug in getProfileOwnerAdminsForCurrentProfileGroup"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e13ef94a6a
@@ -14584,8 +14584,10 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
for (int i = 0; i < users.length; i++) {
|
||||
final ComponentName componentName = getProfileOwner(users[i]);
|
||||
if (componentName != null) {
|
||||
admins.add(getActiveAdminForCallerLocked(
|
||||
componentName, DeviceAdminInfo.USES_POLICY_PROFILE_OWNER));
|
||||
ActiveAdmin admin = getActiveAdminUncheckedLocked(componentName, users[i]);
|
||||
if (admin != null) {
|
||||
admins.add(admin);
|
||||
}
|
||||
}
|
||||
}
|
||||
return admins;
|
||||
|
||||
Reference in New Issue
Block a user