Skip to content
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
romtsn committed Sep 5, 2024
commit bee9697fe31e8a2e35d31c4470d8f0100747fb94
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ sealed class ViewHierarchyNode(
private fun Int.toOpaque() = this or 0xFF000000.toInt()

private val TextView.dominantTextColor: Int get() {
if (text !is Spqanned) return currentTextColor
if (text !is Spanned) return currentTextColor

val spans = (text as Spanned).getSpans(0, text.length, ForegroundColorSpan::class.java)

Expand Down