Merge "Reflect device encryption status" into oc-mr1-dev am: 3de3cf85f4
am: 7c94fcc9bc
Change-Id: I44690e80e84d9de842d04bb349581cbfb2a3c808
This commit is contained in:
@@ -359,6 +359,15 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
getResources().getString(R.string.switch_on_text));
|
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
|
// Show password
|
||||||
mShowPassword = (SwitchPreference) root.findPreference(KEY_SHOW_PASSWORD);
|
mShowPassword = (SwitchPreference) root.findPreference(KEY_SHOW_PASSWORD);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user