diff --git a/res/values/strings.xml b/res/values/strings.xml index b3bbb46ad07..73a3d3c7935 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -700,12 +700,12 @@ Security Encryption & credentials - + Phone encrypted - Phone not encrypted - + Phone not encrypted + Device encrypted - Device not encrypted + Device not encrypted Lock screen @@ -1243,15 +1243,15 @@ Yes, remove - Encryption + Encryption - Encrypt tablet + Encrypt tablet - Encrypt phone + Encrypt phone - Encrypted + Encrypted diff --git a/res/xml/encryption_and_credential.xml b/res/xml/encryption_and_credential.xml index 9cfc2b8a52b..1f5b005dac7 100644 --- a/res/xml/encryption_and_credential.xml +++ b/res/xml/encryption_and_credential.xml @@ -21,11 +21,11 @@ + android:title="@string/encryption_settings_title"> diff --git a/src/com/android/settings/security/EncryptionStatusPreferenceController.java b/src/com/android/settings/security/EncryptionStatusPreferenceController.java index c6d71858c41..d83579822d4 100644 --- a/src/com/android/settings/security/EncryptionStatusPreferenceController.java +++ b/src/com/android/settings/security/EncryptionStatusPreferenceController.java @@ -55,9 +55,9 @@ public class EncryptionStatusPreferenceController extends BasePreferenceControll public void updateState(Preference preference) { final boolean encryptionEnabled = LockPatternUtils.isDeviceEncryptionEnabled(); if (encryptionEnabled) { - preference.setSummary(R.string.crypt_keeper_encrypted_summary); + preference.setSummary(R.string.encrypted_summary); } else { - preference.setSummary(R.string.decryption_settings_summary); + preference.setSummary(R.string.not_encrypted_summary); } } diff --git a/tests/robotests/src/com/android/settings/security/EncryptionStatusPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/security/EncryptionStatusPreferenceControllerTest.java index 670299efcef..970564aa04f 100644 --- a/tests/robotests/src/com/android/settings/security/EncryptionStatusPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/security/EncryptionStatusPreferenceControllerTest.java @@ -94,7 +94,7 @@ public class EncryptionStatusPreferenceControllerTest { assertThat(mPreference.getFragment()).isNull(); assertThat(mPreference.getSummary()) - .isEqualTo(mContext.getText(R.string.crypt_keeper_encrypted_summary)); + .isEqualTo(mContext.getText(R.string.encrypted_summary)); } @Test @@ -103,7 +103,7 @@ public class EncryptionStatusPreferenceControllerTest { mController.updateState(mPreference); - final CharSequence summary = mContext.getText(R.string.decryption_settings_summary); + final CharSequence summary = mContext.getText(R.string.not_encrypted_summary); assertThat(mPreference.getSummary()).isEqualTo(summary); assertThat(mController.getPreferenceKey()).isNotEqualTo(PREF_KEY_ENCRYPTION_SECURITY_PAGE); assertThat(mPreference.getFragment()).isNull(); @@ -118,7 +118,7 @@ public class EncryptionStatusPreferenceControllerTest { mController.updateState(mPreference); - final CharSequence summary = mContext.getText(R.string.decryption_settings_summary); + final CharSequence summary = mContext.getText(R.string.not_encrypted_summary); assertThat(mPreference.getSummary()).isEqualTo(summary); assertThat(mPreference.getFragment()).isNull(); }