+
Skip to content

Make the whole application crashes when used within a recycler view #1

@lepiatus

Description

@lepiatus

I'm using the librairy within a textview, when changing the text (my text being a spannable string with some formating) using readmore.setText() the app crashes for some text displayiing the following message error

at java.lang.String.getChars(String.java:788)
at android.text.SpannableStringInternal.getChars(SpannableStringInternal.java:178)
at android.text.TextUtils.getChars(TextUtils.java:154)
at android.text.SpannableStringBuilder.(SpannableStringBuilder.java:68)
at com.colormoon.readmoretextview.ReadMoreTextView.updateCollapsedText(ReadMoreTextView.kt:123)
at com.colormoon.readmoretextview.ReadMoreTextView.getTrimmedText(ReadMoreTextView.kt:98)
at com.colormoon.readmoretextview.ReadMoreTextView.getDisplayableText(ReadMoreTextView.kt:72)
at com.colormoon.readmoretextview.ReadMoreTextView.setText(ReadMoreTextView.kt:66)
at com.colormoon.readmoretextview.ReadMoreTextView.setText(ReadMoreTextView.kt:77)
at android.widget.TextView.setText(TextView.java:6106)

What can be the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载