diff options
Diffstat (limited to 'src/com/android/settings/users')
-rw-r--r-- | src/com/android/settings/users/UserSettings.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java index 0a66046f5..bd5d58db0 100644 --- a/src/com/android/settings/users/UserSettings.java +++ b/src/com/android/settings/users/UserSettings.java @@ -649,9 +649,8 @@ public class UserSettings extends RestrictedSettingsFragment } else if (user.isRestricted()) { pref.setSummary(R.string.user_summary_restricted_profile); } else if (user.isManagedProfile()) { - DevicePolicyManager dpm = (DevicePolicyManager) - getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE); - if (dpm.isProfileEnabled(user.id)) { + // TODO: Change this to use the new flag + if (true) { pref.setSummary(R.string.user_summary_managed_profile); } else { pref.setSummary(R.string.user_summary_managed_profile_not_enabled); |