mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +00:00
Fixed removing quote enclosing spans
This commit is contained in:
parent
31c16abbc6
commit
379ec9a338
1 changed files with 6 additions and 2 deletions
|
@ -3429,8 +3429,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
},
|
||||
s, s + 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE | Spanned.SPAN_USER);
|
||||
} else {
|
||||
for (Object span : ssb.getSpans(s, e, Object.class))
|
||||
ssb.removeSpan(span);
|
||||
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.delete(s, e);
|
||||
ssb.insert(s - 1, "\n ");
|
||||
ssb.setSpan(
|
||||
|
|
Loading…
Reference in a new issue