REFACTOR: spacing

This commit is contained in:
FunkyMuse 2023-10-09 19:14:19 +02:00
parent a0ff2b2eeb
commit ec813b1389

View file

@ -931,16 +931,7 @@ fun String.isBlockedNumberPattern() = contains("*")
fun String?.fromHtml(): Spanned =
when {
this == null -> {
// return an empty spannable if the html is null
SpannableString("")
}
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N -> {
Html.fromHtml(this, Html.FROM_HTML_MODE_LEGACY)
}
else -> {
Html.fromHtml(this)
}
this == null -> SpannableString("")
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N -> Html.fromHtml(this, Html.FROM_HTML_MODE_LEGACY)
else -> Html.fromHtml(this)
}