Merge "Establish permanently unavailable settings"
This commit is contained in:
committed by
Android (Google) Code Review
commit
02ec86a17b
@@ -44,7 +44,7 @@ public class EncryptionStatusPreferenceController extends BasePreferenceControll
|
||||
if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE) &&
|
||||
!mContext.getResources().getBoolean(
|
||||
R.bool.config_show_encryption_and_credentials_encryption_status)) {
|
||||
return DISABLED_UNSUPPORTED;
|
||||
return UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
return mUserManager.isAdminUser() ? AVAILABLE : DISABLED_FOR_USER;
|
||||
|
@@ -33,7 +33,7 @@ public class ScreenPinningPreferenceController extends BasePreferenceController
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mContext.getResources().getBoolean(R.bool.config_show_screen_pinning_settings)
|
||||
? AVAILABLE : DISABLED_UNSUPPORTED;
|
||||
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -55,7 +55,7 @@ public class ShowPasswordPreferenceController extends TogglePreferenceController
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mContext.getResources().getBoolean(R.bool.config_show_show_password)
|
||||
? AVAILABLE : DISABLED_UNSUPPORTED;
|
||||
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ public class ManageTrustAgentsPreferenceController extends BasePreferenceControl
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mContext.getResources().getBoolean(R.bool.config_show_manage_trust_agents)
|
||||
? AVAILABLE : DISABLED_UNSUPPORTED;
|
||||
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user