aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/EncryptMessageActivity.java
diff options
context:
space:
mode:
authorThialfihar <thialfihar@gmail.com>2010-04-15 14:37:46 +0000
committerThialfihar <thialfihar@gmail.com>2010-04-15 14:37:46 +0000
commitacd71a45c09ad6668a03ec74399d8f526ab647e2 (patch)
treeda6f4d3ee14825120083d9c838a804e9e918a2a0 /src/org/thialfihar/android/apg/EncryptMessageActivity.java
parentb8009d6d43277a7840819885a64aeda9e5f582e7 (diff)
downloadopen-keychain-acd71a45c09ad6668a03ec74399d8f526ab647e2.tar.gz
open-keychain-acd71a45c09ad6668a03ec74399d8f526ab647e2.tar.bz2
open-keychain-acd71a45c09ad6668a03ec74399d8f526ab647e2.zip
minor layout fixes, replace non breakable spaces if found in an encrypted armored message, as they break the decryption, the HTML representation of GMail introduces them for empty lines ending in a normal space, also adjusted the PGP_MESSAGE regex to allow for spaces after the -----, which seems to be added by some implementations
Diffstat (limited to 'src/org/thialfihar/android/apg/EncryptMessageActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/EncryptMessageActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/thialfihar/android/apg/EncryptMessageActivity.java b/src/org/thialfihar/android/apg/EncryptMessageActivity.java
index 27e4c29be..af2eac82d 100644
--- a/src/org/thialfihar/android/apg/EncryptMessageActivity.java
+++ b/src/org/thialfihar/android/apg/EncryptMessageActivity.java
@@ -312,7 +312,8 @@ public class EncryptMessageActivity extends Activity
try {
if (mEncryptionKeyIds != null && mEncryptionKeyIds.length > 0) {
- Apg.encrypt(in, out, mEncryptionKeyIds, mSignatureKeyId, Apg.getPassPhrase(), this);
+ Apg.encrypt(in, out, true, mEncryptionKeyIds, mSignatureKeyId,
+ Apg.getPassPhrase(), this);
data.putString("message", new String(out.toByteArray()));
} else {
Apg.sign(in, out, mSignatureKeyId, Apg.getPassPhrase(), this);