mailto links with a body but no subject #937

This commit is contained in:
daniel.boehrs
2019-06-14 10:38:26 +02:00
parent 341e41f986
commit 7cd60d9fcd
@@ -106,7 +106,11 @@ public class NewConversationActivity extends ContactSelectionActivity {
String textToShare = mailtoQueryMap.get(SUBJECT);
String body = mailtoQueryMap.get(BODY);
if (body != null && !body.isEmpty()) {
textToShare += "\n" + body;
if (textToShare != null && !textToShare.isEmpty()) {
textToShare += "\n" + body;
} else {
textToShare = body;
}
}
return textToShare;
}