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

Commit a77652fe authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Mark UI components for tests to find.

Bug: 26498834
Change-Id: Id8ade0b9230a946c7facf8ebaf9700c196b31ee3
parent a2dda412
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18,4 +18,10 @@
-->
<resources>
    <item type="id" name="preference_highlight_key" />

    <item type="id" name="lock_none" />
    <item type="id" name="lock_pin" />
    <item type="id" name="lock_password" />

    <item type="id" name="encrypt_dont_require_password" />
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -350,6 +350,11 @@ public class ChooseLockGeneric extends SettingsActivity {

        protected void addPreferences() {
            addPreferencesFromResource(R.xml.security_settings_picker);

            // Used for testing purposes
            findPreference(KEY_UNLOCK_SET_NONE).setViewId(R.id.lock_none);
            findPreference(KEY_UNLOCK_SET_PIN).setViewId(R.id.lock_pin);
            findPreference(KEY_UNLOCK_SET_PASSWORD).setViewId(R.id.lock_password);
        }

        private void updatePreferenceText() {
+4 −0
Original line number Diff line number Diff line
@@ -90,6 +90,10 @@ public class EncryptionInterstitial extends SettingsActivity {

            addPreferencesFromResource(R.xml.security_settings_encryption_interstitial);

            // Used for testing purposes
            findPreference(KEY_ENCRYPT_DONT_REQUIRE_PASSWORD)
                    .setViewId(R.id.encrypt_dont_require_password);

            mRequirePasswordToDecrypt = findPreference(KEY_ENCRYPT_REQUIRE_PASSWORD);
            mDontRequirePasswordToDecrypt = findPreference(KEY_ENCRYPT_DONT_REQUIRE_PASSWORD);
            boolean forFingerprint = getActivity().getIntent().getBooleanExtra(