mirror of https://github.com/M66B/FairEmail.git
Send html
This commit is contained in:
parent
ede2d20ec8
commit
416ad515d1
|
@ -4814,6 +4814,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
String html = Helper.readText(file);
|
String html = Helper.readText(file);
|
||||||
String text = HtmlHelper.getText(context, html);
|
String text = HtmlHelper.getText(context, html);
|
||||||
|
|
||||||
|
result.put("html", html);
|
||||||
if (!TextUtils.isEmpty(text))
|
if (!TextUtils.isEmpty(text))
|
||||||
result.put("text", text);
|
result.put("text", text);
|
||||||
|
|
||||||
|
@ -4846,6 +4847,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
intent.putExtra(Intent.EXTRA_SUBJECT, (String) data.get("subject"));
|
intent.putExtra(Intent.EXTRA_SUBJECT, (String) data.get("subject"));
|
||||||
if (data.containsKey("text"))
|
if (data.containsKey("text"))
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, (String) data.get("text"));
|
intent.putExtra(Intent.EXTRA_TEXT, (String) data.get("text"));
|
||||||
|
if (data.containsKey("html"))
|
||||||
|
intent.putExtra(Intent.EXTRA_HTML_TEXT, (String) data.get("html"));
|
||||||
|
|
||||||
ArrayList<Uri> uris = new ArrayList<>();
|
ArrayList<Uri> uris = new ArrayList<>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue