Use explicit APIs to get device owner information
Bug 24676413 Change-Id: Id346c2f01658173c9671edcfd34bc33f1b25faa4
This commit is contained in:
@@ -1030,7 +1030,7 @@ public class UserSettings extends SettingsPreferenceFragment
|
||||
DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
|
||||
Context.DEVICE_POLICY_SERVICE);
|
||||
// No restricted profiles for tablets with a device owner, or phones.
|
||||
if (dpm.getDeviceOwner() != null || Utils.isVoiceCapable(context)) {
|
||||
if (dpm.isDeviceManaged() || Utils.isVoiceCapable(context)) {
|
||||
caps.mCanAddRestrictedProfile = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user