From 27cc92cbefabb1c3a33fd0c8a2acb3da176f2c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 17 Sep 2014 14:00:11 +0200 Subject: [PATCH] Dont copy encrypted file to clipboard (dont know how that code ended up there) --- .../keychain/ui/EncryptFileActivity.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptFileActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptFileActivity.java index a5de20986..6f563e446 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptFileActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptFileActivity.java @@ -209,8 +209,7 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi // Share encrypted message/file startActivity(sendWithChooserExcludingEncrypt(message)); } else { - // Copy to clipboard - copyToClipboard(message); + // Save encrypted file Notify.showNotify(EncryptFileActivity.this, R.string.encrypt_sign_clipboard_successful, Notify.Style.INFO); } @@ -258,10 +257,6 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi 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. */