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

Fix setting spanned text to IconicsTextView #603

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

kuba2k2
Copy link
Contributor

@kuba2k2 kuba2k2 commented Oct 10, 2021

This PR fixes setting spanned text to IconicsTextView, which would just discard the span information before this change. It was caused by converting CharSequence to String when building Iconics.

A quick comparison is shown below, with a modified PlaygroundActivity (code attached in the commit). A bold span attached to the IconicsTextView is visible.

Note that even calling something like iconicsTextView.text = iconicsTextView.text discarded the spans already - making the icons appear as crossed boxes.

The problem probably does not affect normal TextViews, as they do not call the faulty builder method.

obraz

@mikepenz mikepenz merged commit 9b3db40 into mikepenz:develop Oct 11, 2021
@mikepenz mikepenz added the fix label Oct 11, 2021
@kuba2k2 kuba2k2 deleted the fix/itv-span-usage branch October 11, 2021 14:45
@kuba2k2
Copy link
Contributor Author

kuba2k2 commented Oct 12, 2021

Thanks for the merge.
Is v5.3.2 on the Maven repository already? I can't resolve it in Android Studio, Maven also does not show it.

@mikepenz
Copy link
Owner

@kuba2k2 sorry it is not yet (forgot to press the button on maven) should be in the next 30 minutes

@kuba2k2
Copy link
Contributor Author

kuba2k2 commented Oct 12, 2021

Cool, thanks.

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

Successfully merging this pull request may close these issues.

3 participants