Disable profile enabled check (API is changing)

Bug: 14377459
Change-Id: Ie79db95bcc5c7e3a95b479832dceaf628ae36728
This commit is contained in:
Alexandra Gherghina
2014-04-28 14:11:08 +01:00
parent ab8d3e5a03
commit 9a1baec5a3

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