Merge pull request #950 from deltachat/issue-937

mailto links with a body but no subject #937
This commit is contained in:
björn petersen
2019-06-16 20:55:07 +02:00
committed by GitHub
@@ -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;
}