Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lepiatus opened this issue Nov 5, 2023 · 0 comments
Open

Comments

@lepiatus
Copy link

lepiatus commented Nov 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant