Skip to content

Commit 9b7f6a7

Browse files
committed
Trying to copy service spans into the dest.
1 parent bfe9a60 commit 9b7f6a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
679679
// we can't just return a dest, so we need to copy it into a new spannable string
680680
// this will also strip all the internal "service" spans
681681
temp = SpannableStringBuilder(dest)
682+
TextUtils.copySpansFrom(dest, 0, dest.length, Any::class.java, temp, 0)
682683
// copy all the suggestion spans from the source, so we can see underlines
683684
if (source is Spanned) {
684685
TextUtils.copySpansFrom(source, 0, dest.length, SuggestionSpan::class.java, temp, 0)

0 commit comments

Comments
 (0)