Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fa53922 authored by Luke Dashjr's avatar Luke Dashjr Committed by Abhisek Devkota
Browse files

Allow restricted profiles on phones

This restriction was introduced by commit 9e6ac3d2
While it works normally on phones, disallowing calls will still
allow a restricted user to place emergency calls and receive any incoming
calls.

Change-Id: I61d5b80f0320445cc414d348342280d4eee3c304
parent fc9ae592
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1056,8 +1056,8 @@ public class UserSettings extends SettingsPreferenceFragment
            caps.mIsAdmin = myUserInfo.isAdmin();
            DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
                    Context.DEVICE_POLICY_SERVICE);
            // No restricted profiles for tablets with a device owner, or phones.
            if (dpm.isDeviceManaged() || Utils.isVoiceCapable(context)) {
            // No restricted profiles for devices with a device owner.
            if (dpm.isDeviceManaged()) {
                caps.mCanAddRestrictedProfile = false;
            }
            caps.updateAddUserCapabilities(context);