Fixed quote extending

pull/172/head
M66B 6 years ago
parent d8af9d2226
commit d05afdcc12

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

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

Loading…
Cancel
Save