mirror of https://github.com/M66B/FairEmail.git
Fixed split overlap inner
This commit is contained in:
parent
9740f296ee
commit
d5def306de
|
@ -622,9 +622,11 @@ public class StyleHelper {
|
||||||
// overlap all
|
// overlap all
|
||||||
if (extend)
|
if (extend)
|
||||||
edit.setSpan(span1, start, end, f);
|
edit.setSpan(span1, start, end, f);
|
||||||
} else if (start > s && end < e) {
|
} else if (start >= s && end <= e) {
|
||||||
// overlap inner
|
// overlap inner
|
||||||
|
if (s < start)
|
||||||
edit.setSpan(span1, s, start, f);
|
edit.setSpan(span1, s, start, f);
|
||||||
|
if (end < e)
|
||||||
edit.setSpan(span2, end, e, f);
|
edit.setSpan(span2, end, e, f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue