|
@ -864,9 +864,13 @@ public class FragmentCompose extends FragmentEx { |
|
|
text = db.answer().getAnswer(answer).text; |
|
|
text = db.answer().getAnswer(answer).text; |
|
|
|
|
|
|
|
|
String name = null; |
|
|
String name = null; |
|
|
if (draft.to != null && draft.to.length > 0) |
|
|
|
|
|
|
|
|
String email = null; |
|
|
|
|
|
if (draft.to != null && draft.to.length > 0) { |
|
|
name = ((InternetAddress) draft.to[0]).getPersonal(); |
|
|
name = ((InternetAddress) draft.to[0]).getPersonal(); |
|
|
|
|
|
email = ((InternetAddress) draft.to[0]).getAddress(); |
|
|
|
|
|
} |
|
|
text = text.replace("$name$", name == null ? "" : name); |
|
|
text = text.replace("$name$", name == null ? "" : name); |
|
|
|
|
|
text = text.replace("$email$", email == null ? "" : email); |
|
|
} |
|
|
} |
|
|
draft.subject = context.getString(R.string.title_subject_reply, ref.subject); |
|
|
draft.subject = context.getString(R.string.title_subject_reply, ref.subject); |
|
|
body = String.format("%s<br><br>%s %s:<br><br><blockquote>%s</blockquote>", |
|
|
body = String.format("%s<br><br>%s %s:<br><br><blockquote>%s</blockquote>", |
|
|