Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3de3cf85 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 625b1dd1 f0c0320c
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -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);