~singpolyma/cheogram-android

48526fcd8844ba74c347afee39e5d77459529a65 — Stephen Paul Weber 1 year, 8 months ago c2ff440
We use fromHtml that is 24+
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Message.java
M src/main/java/eu/siacs/conversations/entities/Message.java => src/main/java/eu/siacs/conversations/entities/Message.java +2 -1
@@ 4,6 4,7 @@ import android.content.ContentValues;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.graphics.Color;
import android.os.Build;
import android.text.Html;
import android.text.SpannableStringBuilder;
import android.util.Log;


@@ 771,7 772,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable 

    public SpannableStringBuilder getSpannableBody(GetThumbnailForCid thumbnailer, Drawable fallbackImg) {
        final Element html = getHtml();
        if (html == null) {
        if (html == null || Build.VERSION.SDK_INT < 24) {
            return new SpannableStringBuilder(MessageUtils.filterLtrRtl(getBody()).trim());
        } else {
            SpannableStringBuilder spannable = new SpannableStringBuilder(Html.fromHtml(