mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -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();
|
updateSource();
|
||||||
|
|
||||||
if (mSource.getCurrentView().getId() == R.id.sourceMessage &&
|
if (mSource.getCurrentView().getId() == R.id.sourceMessage &&
|
||||||
mMessage.getText().length() > 0) {
|
(mMessage.getText().length() > 0 || mData != null)) {
|
||||||
mDecryptButton.performClick();
|
mDecryptButton.performClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -381,7 +381,7 @@ public class EncryptActivity extends BaseActivity {
|
|||||||
updateButtons();
|
updateButtons();
|
||||||
|
|
||||||
if (mReturnResult &&
|
if (mReturnResult &&
|
||||||
mMessage.getText().length() > 0 &&
|
(mMessage.getText().length() > 0 || mData != null) &&
|
||||||
((mEncryptionKeyIds != null &&
|
((mEncryptionKeyIds != null &&
|
||||||
mEncryptionKeyIds.length > 0) ||
|
mEncryptionKeyIds.length > 0) ||
|
||||||
getSecretKeyId() != 0)) {
|
getSecretKeyId() != 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user