mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
start encryption/decryption for ENCRYPT_AND_RETURN/DECRYPT_AND_RETURN if MESSAGE_DATA is used rather than MESSAGE_TEXT
This commit is contained in:
parent
9c251b6809
commit
f55d4d55a5
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user