mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-26 00:11:52 -05:00
Dont copy encrypted file to clipboard (dont know how that code ended up there)
This commit is contained in:
parent
d686c55a0a
commit
27cc92cbef
@ -209,8 +209,7 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi
|
|||||||
// Share encrypted message/file
|
// Share encrypted message/file
|
||||||
startActivity(sendWithChooserExcludingEncrypt(message));
|
startActivity(sendWithChooserExcludingEncrypt(message));
|
||||||
} else {
|
} else {
|
||||||
// Copy to clipboard
|
// Save encrypted file
|
||||||
copyToClipboard(message);
|
|
||||||
Notify.showNotify(EncryptFileActivity.this,
|
Notify.showNotify(EncryptFileActivity.this,
|
||||||
R.string.encrypt_sign_clipboard_successful, Notify.Style.INFO);
|
R.string.encrypt_sign_clipboard_successful, Notify.Style.INFO);
|
||||||
}
|
}
|
||||||
@ -258,10 +257,6 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void copyToClipboard(Message message) {
|
|
||||||
ClipboardReflection.copyToClipboard(this, new String(message.getData().getByteArray(KeychainIntentService.RESULT_BYTES)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Intent Chooser but exclude OK's EncryptActivity.
|
* Create Intent Chooser but exclude OK's EncryptActivity.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user