diff options
Diffstat (limited to 'OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java')
-rw-r--r-- | OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java index 322a446b5..aa34fdebe 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java +++ b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java @@ -30,6 +30,7 @@ public class BaseActivity extends PreferenceActivity { private Preference mIntentDemo; private Preference mContentProviderDemo; + private Preference mCryptoProvider; private Preference mAidlDemo; private Preference mAidlDemo2; @@ -48,6 +49,7 @@ public class BaseActivity extends PreferenceActivity { // find preferences mIntentDemo = (Preference) findPreference("intent_demo"); mContentProviderDemo = (Preference) findPreference("content_provider_demo"); + mCryptoProvider = (Preference) findPreference("crypto_provider_demo"); mAidlDemo = (Preference) findPreference("aidl_demo"); mAidlDemo2 = (Preference) findPreference("aidl_demo2"); @@ -68,6 +70,15 @@ public class BaseActivity extends PreferenceActivity { return false; } }); + + mCryptoProvider.setOnPreferenceClickListener(new OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + startActivity(new Intent(mActivity, CryptoProviderDemoActivity.class)); + + return false; + } + }); mAidlDemo.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override |