mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-30 16:51:42 +01:00
fix
This commit is contained in:
parent
d075a891d1
commit
d8a9be3a82
1 changed files with 2 additions and 2 deletions
|
@ -1119,7 +1119,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
final Element html = getHtml();
|
||||
if (html == null || Build.VERSION.SDK_INT < 24) {
|
||||
spannableBody = new SpannableStringBuilder(MessageUtils.filterLtrRtl(getBody(getInReplyTo() != null)).trim());
|
||||
// spannableBody.setSpan(PLAIN_TEXT_SPAN, 0, spannableBody.length(), 0); // Let adapter know it can do more formatting
|
||||
spannableBody.setSpan(PLAIN_TEXT_SPAN, 0, spannableBody.length(), 0); // Let adapter know it can do more formatting
|
||||
} else {
|
||||
boolean[] anyfallbackimg = new boolean[]{ false };
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
final var quote = getInReplyTo().getSpannableBody(thumbnailer, fallbackImg);
|
||||
if ((getInReplyTo().isFileOrImage() || getInReplyTo().isOOb()) && getInReplyTo().getFileParams() != null) {
|
||||
quote.insert(0, "🖼️");
|
||||
final var cid = getInReplyTo().getFileParams().getCids().size() < 1 ? null : getInReplyTo().getFileParams().getCids().get(0);
|
||||
final var cid = getInReplyTo().getFileParams().getCids().isEmpty() ? null : getInReplyTo().getFileParams().getCids().get(0);
|
||||
Drawable thumbnail = thumbnailer == null || cid == null ? null : thumbnailer.getThumbnail(cid);
|
||||
if (thumbnail == null) thumbnail = fallbackImg;
|
||||
if (thumbnail != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue