Fixed quote extending

This commit is contained in:
M66B 2020-01-30 09:31:41 +01:00
parent d8af9d2226
commit d05afdcc12
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ public class EditTextCompose extends AppCompatEditText {
new StyledQuoteSpan(context, colorPrimary),
ssb.getSpanStart(span),
ssb.getSpanEnd(span),
ssb.getSpanFlags(span));
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ssb.removeSpan(span);
}

View File

@ -4037,7 +4037,7 @@ public class FragmentCompose extends FragmentBase {
new StyledQuoteSpan(context, colorPrimary),
bodyBuilder.getSpanStart(quoteSpan),
bodyBuilder.getSpanEnd(quoteSpan),
bodyBuilder.getSpanFlags(quoteSpan));
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
bodyBuilder.removeSpan(quoteSpan);
}
@ -4062,7 +4062,7 @@ public class FragmentCompose extends FragmentBase {
new StyledQuoteSpan(context, colorPrimary),
refBuilder.getSpanStart(quoteSpan),
refBuilder.getSpanEnd(quoteSpan),
refBuilder.getSpanFlags(quoteSpan));
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
refBuilder.removeSpan(quoteSpan);
}