mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Stop listing on empty list item
This commit is contained in:
parent
24bc2e7002
commit
a07eb7a184
1 changed files with 8 additions and 6 deletions
|
@ -579,6 +579,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
if (s > 0 &&
|
||||
added + 1 > s && e > added + 1 &&
|
||||
text.charAt(s - 1) == '\n' && text.charAt(e - 1) == '\n') {
|
||||
if (e - s > 2) {
|
||||
BulletSpan b1 = clone(span, span.getClass(), etBody.getContext());
|
||||
text.setSpan(b1, s, added + 1, f);
|
||||
Log.i("Span " + s + "..." + (added + 1));
|
||||
|
@ -586,6 +587,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
BulletSpan b2 = clone(b1, span.getClass(), etBody.getContext());
|
||||
text.setSpan(b2, added + 1, e, f);
|
||||
Log.i("Span " + (added + 1) + "..." + e);
|
||||
}
|
||||
|
||||
renum = true;
|
||||
text.removeSpan(span);
|
||||
|
|
Loading…
Reference in a new issue