Merge "DO NOT MERGE: Change encryption preference's summary accordingly"
This commit is contained in:
@@ -427,6 +427,17 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
||||
mEnterprisePrivacyPreferenceController.displayPreference(root);
|
||||
mEnterprisePrivacyPreferenceController.onResume();
|
||||
|
||||
final Preference encryptioncredential = root.findPreference(KEY_ENCRYPTION_AND_CREDENTIALS);
|
||||
if (LockPatternUtils.isDeviceEncryptionEnabled()) {
|
||||
final String summaryencrypt = getContext().getString(
|
||||
R.string.encryption_and_credential_settings_summary);
|
||||
encryptioncredential.setSummary(summaryencrypt);
|
||||
} else {
|
||||
final String summarydecrypt = getContext().getString(
|
||||
R.string.decryption_settings_summary);
|
||||
encryptioncredential.setSummary(summarydecrypt);
|
||||
}
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user