Mark UI components for tests to find.

Bug: 26498834
Change-Id: Id8ade0b9230a946c7facf8ebaf9700c196b31ee3
This commit is contained in:
Jeff Sharkey
2016-04-01 23:12:45 -06:00
parent a2dda4122b
commit a77652fea9
3 changed files with 15 additions and 0 deletions

View File

@@ -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(