Disable profile enabled check (API is changing)
Bug: 14377459 Change-Id: Ie79db95bcc5c7e3a95b479832dceaf628ae36728
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user