Skip to content

textViewSuffixWrapper会覆盖掉mainContent的span样式 #7

Description

@canxiangmihoyo

使用下来,发现,在 val tmp = mainContent.substring(start, end)autoSet(index)中的val msg = "${mainContent.substring(0, index)}$suffix"这两处的代码,会导致CharSequence类型的mainContent变成String,丢失掉span样式,建议改成

val tmp = mainContent.subSequence(start, end)
val context = SpannableStringBuilder().append(
       tmp
).append(
       suffix
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions