1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 09:16:00 +00:00

Fixed removing quote enclosing spans

This commit is contained in:
M66B 2024-07-28 07:19:57 +02:00
parent 31c16abbc6
commit 379ec9a338

View file

@ -3429,8 +3429,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}, },
s, s + 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE | Spanned.SPAN_USER); s, s + 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE | Spanned.SPAN_USER);
} else { } else {
for (Object span : ssb.getSpans(s, e, Object.class)) for (Object span : ssb.getSpans(s, e, Object.class)) {
int s0 = ssb.getSpanStart(span);
int e0 = ssb.getSpanEnd(span);
if (s0 >= s && e0 <= e)
ssb.removeSpan(span); ssb.removeSpan(span);
}
ssb.delete(s, e); ssb.delete(s, e);
ssb.insert(s - 1, "\n "); ssb.insert(s - 1, "\n ");
ssb.setSpan( ssb.setSpan(