From 4d1d3f6f5ea2eca224965ed3a2f1de5c551453fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Sun, 8 Sep 2013 17:04:33 +0200 Subject: Select pub key when email could not be found --- .../keychain/demo/CryptoProviderDemoActivity.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenPGP-Keychain-API-Demo/src/org') diff --git a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java index ca8824815..cbd829578 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java +++ b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java @@ -35,12 +35,14 @@ import android.content.pm.ResolveInfo; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.RemoteException; +import android.text.method.ScrollingMovementMethod; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListAdapter; +import android.widget.Scroller; import android.widget.TextView; public class CryptoProviderDemoActivity extends Activity { @@ -48,7 +50,7 @@ public class CryptoProviderDemoActivity extends Activity { EditText mMessage; EditText mCiphertext; - EditText mEncryptUserId; + EditText mEncryptUserIds; private CryptoServiceConnection mCryptoServiceConnection; @@ -61,7 +63,7 @@ public class CryptoProviderDemoActivity extends Activity { mMessage = (EditText) findViewById(R.id.crypto_provider_demo_message); mCiphertext = (EditText) findViewById(R.id.crypto_provider_demo_ciphertext); - mEncryptUserId = (EditText) findViewById(R.id.crypto_provider_demo_encrypt_user_id); + mEncryptUserIds = (EditText) findViewById(R.id.crypto_provider_demo_encrypt_user_id); selectCryptoProvider(); } @@ -125,7 +127,7 @@ public class CryptoProviderDemoActivity extends Activity { try { mCryptoServiceConnection.getService().encrypt(inputBytes, - new String[] { mEncryptUserId.getText().toString() }, encryptCallback); + mEncryptUserIds.getText().toString().split(","), encryptCallback); } catch (RemoteException e) { Log.e(Constants.TAG, "CryptoProviderDemo", e); } @@ -146,7 +148,7 @@ public class CryptoProviderDemoActivity extends Activity { try { mCryptoServiceConnection.getService().encryptAndSign(inputBytes, - new String[] { mEncryptUserId.getText().toString() }, encryptCallback); + mEncryptUserIds.getText().toString().split(","), encryptCallback); } catch (RemoteException e) { Log.e(Constants.TAG, "CryptoProviderDemo", e); } -- cgit v1.2.3