Skip to content

Commit

Permalink
Fix extra space between textview
Browse files Browse the repository at this point in the history
  • Loading branch information
nailshaykhraziev committed Jul 22, 2021
1 parent ee4f4ff commit fffe291
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ open class BlockRenderer(
content.addView(childView)
}
}
childNode is CDARichHyperLink -> {
childNode is CDARichHyperLink && childNode.data is String -> {
val childLayout = childView.findViewById<ViewGroup>(R.id.rich_content)
if (childLayout.childCount > 0) {
val childTextView = childLayout.getChildAt(0) as TextView
val span = UrlSpan(childNode.data as String)
val text = lastTextView?.let {
SpannableStringBuilder(it.text).append(" ").append(childTextView.text)
SpannableStringBuilder(it.text).append(childTextView.text)
} ?: SpannableStringBuilder(childTextView.text)

context.config?.linkColor?.let {
Expand Down

0 comments on commit fffe291

Please sign in to comment.