1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Enabled html compact mode

This commit is contained in:
M66B 2019-03-06 10:36:14 +00:00
parent 1a072cde2a
commit 278bdcb153

View file

@ -56,7 +56,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.text.HtmlCompat;
import static androidx.core.text.HtmlCompat.FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM;
import static androidx.core.text.HtmlCompat.FROM_HTML_MODE_COMPACT;
import static androidx.core.text.HtmlCompat.TO_HTML_PARAGRAPH_LINES_CONSECUTIVE;
public class HtmlHelper {
@ -395,7 +395,7 @@ public class HtmlHelper {
}
static Spanned fromHtml(@NonNull String html, @Nullable Html.ImageGetter imageGetter, @Nullable Html.TagHandler tagHandler) {
return HtmlCompat.fromHtml(html, FROM_HTML_SEPARATOR_LINE_BREAK_LIST_ITEM, imageGetter, null);
return HtmlCompat.fromHtml(html, FROM_HTML_MODE_COMPACT, imageGetter, tagHandler);
}
static String toHtml(Spanned spanned) {