From 8becbd0622eb0cf5021985940adb3ddd06933a56 Mon Sep 17 00:00:00 2001 From: Enrico Oliverio Date: Fri, 9 Aug 2013 14:57:46 +0200 Subject: [PATCH] Type is set to text/plain so that encrypted messages can be sent with Whatsapp, Hangouts, SMS etc... --- .../org/sufficientlysecure/keychain/ui/EncryptActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java index 25901d855..e38044526 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java @@ -778,7 +778,11 @@ public class EncryptActivity extends SherlockFragmentActivity { Log.d(Constants.TAG, "output: " + output); Intent emailIntent = new Intent(Intent.ACTION_SEND); - emailIntent.setType("text/plain; charset=utf-8"); + + //Type is set to text/plain so that encrypted messages can + //be sent with Whatsapp, Hangouts, SMS etc... + emailIntent.setType("text/plain"); + emailIntent.putExtra(Intent.EXTRA_TEXT, output); if (mSubject != null) { emailIntent.putExtra(Intent.EXTRA_SUBJECT, mSubject);