diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-05-28 15:10:36 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-05-28 15:10:36 +0200 |
commit | b221c0c9051d7dea697aff7b3167fca69eb1f4f8 (patch) | |
tree | e973bdd30cd4c2b7e7366e693077210df795032b /OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java | |
parent | 8c537d33678bfa1583598923608494a49e8781ea (diff) | |
download | open-keychain-b221c0c9051d7dea697aff7b3167fca69eb1f4f8.tar.gz open-keychain-b221c0c9051d7dea697aff7b3167fca69eb1f4f8.tar.bz2 open-keychain-b221c0c9051d7dea697aff7b3167fca69eb1f4f8.zip |
Crypto Provider implementation start
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 |