mirror of https://github.com/M66B/FairEmail.git
Fixed truncating messages
This commit is contained in:
parent
841bad56ca
commit
395273670b
|
@ -1738,6 +1738,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (show_full) {
|
||||
if (HtmlHelper.truncate(document, false))
|
||||
document.body()
|
||||
.appendElement("br")
|
||||
.appendElement("p")
|
||||
.appendElement("em")
|
||||
.text(context.getString(R.string.title_truncated));
|
||||
|
|
|
@ -330,6 +330,7 @@ public class HtmlHelper {
|
|||
// Limit length
|
||||
if (truncate(parsed, true)) {
|
||||
parsed.body()
|
||||
.appendElement("br")
|
||||
.appendElement("p")
|
||||
.appendElement("em")
|
||||
.text(context.getString(R.string.title_too_large));
|
||||
|
@ -1234,13 +1235,10 @@ public class HtmlHelper {
|
|||
}
|
||||
} else {
|
||||
if (skip)
|
||||
child.remove();
|
||||
tnode.text("");
|
||||
}
|
||||
|
||||
length += text.length();
|
||||
} else {
|
||||
if (skip)
|
||||
child.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue