mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Simplify address handling by using type converters
This commit is contained in:
@@ -72,7 +72,7 @@ public class FragmentAbout extends FragmentEx {
|
||||
EntityMessage draft = new EntityMessage();
|
||||
draft.account = drafts.account;
|
||||
draft.folder = drafts.id;
|
||||
draft.to = MessageHelper.encodeAddresses(new Address[]{to});
|
||||
draft.to = new Address[]{to};
|
||||
draft.subject = BuildConfig.APPLICATION_ID + " debug info";
|
||||
draft.body = "<pre>" + info.toString().replaceAll("\\r?\\n" , "<br />") + "</pre>";
|
||||
draft.received = new Date().getTime();
|
||||
|
||||
Reference in New Issue
Block a user