Dont copy encrypted file to clipboard (dont know how that code ended up there)

This commit is contained in:
Dominik Schürmann 2014-09-17 14:00:11 +02:00
parent d686c55a0a
commit 27cc92cbef

View File

@ -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.
*/