mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 16:38:50 -05:00
auto-click encrypt/decrypt button when using an *_AND_RETURN Intent with EXTRA_DATA or ContentURI
Fixes issue 67
This commit is contained in:
parent
9e8b266bf0
commit
9687e9b1a3
@ -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 || mData != null)) {
|
(mMessage.getText().length() > 0 || mData != null || mContentUri != null)) {
|
||||||
mDecryptButton.performClick();
|
mDecryptButton.performClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -394,7 +394,7 @@ public class EncryptActivity extends BaseActivity {
|
|||||||
updateButtons();
|
updateButtons();
|
||||||
|
|
||||||
if (mReturnResult &&
|
if (mReturnResult &&
|
||||||
(mMessage.getText().length() > 0 || mData != null) &&
|
(mMessage.getText().length() > 0 || mData != null || mContentUri != null) &&
|
||||||
((mEncryptionKeyIds != null &&
|
((mEncryptionKeyIds != null &&
|
||||||
mEncryptionKeyIds.length > 0) ||
|
mEncryptionKeyIds.length > 0) ||
|
||||||
getSecretKeyId() != 0)) {
|
getSecretKeyId() != 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user