Merge "Reflect device encryption status" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-09-23 00:28:27 +00:00
committed by Android (Google) Code Review

View File

@@ -359,6 +359,15 @@ public class SecuritySettings extends SettingsPreferenceFragment
getResources().getString(R.string.switch_on_text));
}
// Encryption status of device
if (LockPatternUtils.isDeviceEncryptionEnabled()) {
root.findPreference(KEY_ENCRYPTION_AND_CREDENTIALS).setSummary(
R.string.encryption_and_credential_settings_summary);
} else {
root.findPreference(KEY_ENCRYPTION_AND_CREDENTIALS).setSummary(
R.string.summary_placeholder);
}
// Show password
mShowPassword = (SwitchPreference) root.findPreference(KEY_SHOW_PASSWORD);