<!-- Whether none security option is hide or not (country specific). -->
<bool name="config_hide_none_security_option">false</bool>
+ <!-- Whether swipe security option is hidden or not -->
+ <bool name="config_hide_swipe_security_option">false</bool>
+
<!--Whether the storage manager exists. -->
<bool name="config_has_storage_manager">false</bool>
</resources>
disabledByAdmin = adminEnforcedQuality
> DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
} else if (KEY_UNLOCK_SET_NONE.equals(key)) {
- if (mUserId != UserHandle.myUserId()) {
- // Swipe doesn't make sense for profiles.
+ if (getResources().getBoolean(R.bool.config_hide_swipe_security_option)) {
+ enabled = false;
visible = false;
+ } else {
+ if (mUserId != UserHandle.myUserId()) {
+ // Swipe doesn't make sense for profiles.
+ visible = false;
+ }
+ enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
}
- enabled = quality <= DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
disabledByAdmin = adminEnforcedQuality
> DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
} else if (KEY_UNLOCK_SET_PATTERN.equals(key)) {