Merge "Disable profile enabled check (API is changing)"

This commit is contained in:
Alexandra Gherghina
2014-05-01 10:37:22 +00:00
committed by Android (Google) Code Review

View File

@@ -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);