Refactoring

pull/215/head
M66B 1 year ago
parent b37b82f9e7
commit 7c10f5035c

@ -110,10 +110,6 @@ public class EntityAnswer implements Serializable {
private static final String PREF_PLACEHOLDER = "answer.value.";
String getHtml(Context context, Address[] address) {
return replacePlaceholders(context, text, address);
}
static String replacePlaceholders(Context context, String text, Address[] address) {
String fullName = null;
String email = null;
if (address != null && address.length > 0) {

@ -2488,7 +2488,7 @@ public class FragmentCompose extends FragmentBase {
} catch (AddressException ignored) {
}
String html = EntityAnswer.replacePlaceholders(context, answer.text, tos);
String html = answer.getHtml(context, tos);
Document d = HtmlHelper.sanitizeCompose(context, html, true);
Spanned spanned = HtmlHelper.fromDocument(context, d, new HtmlHelper.ImageGetterEx() {

Loading…
Cancel
Save