aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2016-02-24 15:39:23 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2016-05-07 12:06:06 +0300
commit169e004ba52b6dc15132d286bdc8aa216f0ca1f2 (patch)
tree0639bc383982ea35a81af51edc9325852e4f16a7
parente7d72da343c6a42da6d1beb98ac8014da7cbce30 (diff)
downloadopenpgp-api-169e004ba52b6dc15132d286bdc8aa216f0ca1f2.tar.gz
openpgp-api-169e004ba52b6dc15132d286bdc8aa216f0ca1f2.tar.bz2
openpgp-api-169e004ba52b6dc15132d286bdc8aa216f0ca1f2.zip
Fix ACTION_GET_KEY_IDS example
-rw-r--r--example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
index 823c202..3ebe9b4 100644
--- a/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
+++ b/example/src/main/java/org/openintents/openpgp/example/OpenPgpApiActivity.java
@@ -49,6 +49,7 @@ public class OpenPgpApiActivity extends Activity {
private EditText mDetachedSignature;
private EditText mEncryptUserIds;
private EditText mGetKeyEdit;
+ private EditText mGetKeyIdsEdit;
private OpenPgpServiceConnection mServiceConnection;
@@ -79,7 +80,7 @@ public class OpenPgpApiActivity extends Activity {
Button decryptAndVerify = (Button) findViewById(R.id.crypto_provider_demo_decrypt_and_verify);
Button verifyDetachedSignature = (Button) findViewById(R.id.crypto_provider_demo_verify_detached_signature);
mGetKeyEdit = (EditText) findViewById(R.id.crypto_provider_demo_get_key_edit);
- EditText getKeyIdsEdit = (EditText) findViewById(R.id.crypto_provider_demo_get_key_ids_edit);
+ mGetKeyIdsEdit = (EditText) findViewById(R.id.crypto_provider_demo_get_key_ids_edit);
Button getKey = (Button) findViewById(R.id.crypto_provider_demo_get_key);
Button getKeyIds = (Button) findViewById(R.id.crypto_provider_demo_get_key_ids);
@@ -387,6 +388,7 @@ public class OpenPgpApiActivity extends Activity {
public void getKeyIds(Intent data) {
data.setAction(OpenPgpApi.ACTION_GET_KEY_IDS);
+ data.putExtra(OpenPgpApi.EXTRA_USER_IDS, mGetKeyIdsEdit.getText().toString().split(","));
OpenPgpApi api = new OpenPgpApi(this, mServiceConnection.getService());
api.executeApiAsync(data, null, null, new MyCallback(false, null, REQUEST_CODE_GET_KEY_IDS));
@@ -394,7 +396,6 @@ public class OpenPgpApiActivity extends Activity {
public void getAnyKeyIds(Intent data) {
data.setAction(OpenPgpApi.ACTION_GET_KEY_IDS);
-// data.putExtra(OpenPgpApi.EXTRA_USER_IDS, mGetKeyIdsEdit.getText().toString().split(","));
OpenPgpApi api = new OpenPgpApi(this, mServiceConnection.getService());
api.executeApiAsync(data, null, null, new MyCallback(false, null, REQUEST_CODE_GET_KEY_IDS));