mirror of https://github.com/M66B/FairEmail.git
Stop listing on empty list item
This commit is contained in:
parent
24bc2e7002
commit
a07eb7a184
|
@ -579,13 +579,15 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (s > 0 &&
|
if (s > 0 &&
|
||||||
added + 1 > s && e > added + 1 &&
|
added + 1 > s && e > added + 1 &&
|
||||||
text.charAt(s - 1) == '\n' && text.charAt(e - 1) == '\n') {
|
text.charAt(s - 1) == '\n' && text.charAt(e - 1) == '\n') {
|
||||||
BulletSpan b1 = clone(span, span.getClass(), etBody.getContext());
|
if (e - s > 2) {
|
||||||
text.setSpan(b1, s, added + 1, f);
|
BulletSpan b1 = clone(span, span.getClass(), etBody.getContext());
|
||||||
Log.i("Span " + s + "..." + (added + 1));
|
text.setSpan(b1, s, added + 1, f);
|
||||||
|
Log.i("Span " + s + "..." + (added + 1));
|
||||||
|
|
||||||
BulletSpan b2 = clone(b1, span.getClass(), etBody.getContext());
|
BulletSpan b2 = clone(b1, span.getClass(), etBody.getContext());
|
||||||
text.setSpan(b2, added + 1, e, f);
|
text.setSpan(b2, added + 1, e, f);
|
||||||
Log.i("Span " + (added + 1) + "..." + e);
|
Log.i("Span " + (added + 1) + "..." + e);
|
||||||
|
}
|
||||||
|
|
||||||
renum = true;
|
renum = true;
|
||||||
text.removeSpan(span);
|
text.removeSpan(span);
|
||||||
|
|
Loading…
Reference in New Issue