1
0
mirror of https://github.com/accelforce/Yuito synced 2025-01-03 03:20:43 +01:00

fix links sometimes being underlined

This commit is contained in:
Conny Duck 2023-08-30 18:49:59 +02:00
parent 10a6b1616a
commit ee4f6f4b7f

View File

@ -68,7 +68,7 @@ fun setClickableText(view: TextView, content: CharSequence, mentions: List<Menti
val spannableContent = markupHiddenUrls(view.context, content)
view.text = spannableContent.apply {
getSpans(0, content.length, URLSpan::class.java).forEach {
getSpans(0, spannableContent.length, URLSpan::class.java).forEach {
setClickableText(it, this, mentions, tags, listener)
}
}