start encryption/decryption for ENCRYPT_AND_RETURN/DECRYPT_AND_RETURN if MESSAGE_DATA is used rather than MESSAGE_TEXT

This commit is contained in:
Thialfihar 2010-09-26 17:46:13 +00:00
parent 9c251b6809
commit f55d4d55a5
2 changed files with 2 additions and 2 deletions

View file

@ -328,7 +328,7 @@ public class DecryptActivity extends BaseActivity {
updateSource();
if (mSource.getCurrentView().getId() == R.id.sourceMessage &&
mMessage.getText().length() > 0) {
(mMessage.getText().length() > 0 || mData != null)) {
mDecryptButton.performClick();
}
}

View file

@ -381,7 +381,7 @@ public class EncryptActivity extends BaseActivity {
updateButtons();
if (mReturnResult &&
mMessage.getText().length() > 0 &&
(mMessage.getText().length() > 0 || mData != null) &&
((mEncryptionKeyIds != null &&
mEncryptionKeyIds.length > 0) ||
getSecretKeyId() != 0)) {