Skip to content

Commit

Permalink
add back URLSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
ccen-stripe committed Oct 10, 2023
1 parent 95b67f4 commit e749686
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.text.style.ForegroundColorSpan
import android.text.style.ImageSpan
import android.text.style.StyleSpan
import android.text.style.URLSpan
import android.text.style.UnderlineSpan
import androidx.annotation.DrawableRes
import androidx.annotation.RestrictTo
import androidx.annotation.StringRes
Expand Down Expand Up @@ -383,6 +384,13 @@ fun annotatedStringResource(
)
}
}
is UnderlineSpan -> {
addStyle(
SpanStyle(textDecoration = TextDecoration.Underline),
start,
end
)
}
is BulletSpan -> {
// append a bullet and a tab character in front
append("\u2022\t")
Expand Down

0 comments on commit e749686

Please sign in to comment.