mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
Changing from String to String?
This commit is contained in:
parent
b9c3b28154
commit
9d17ee965e
@ -44,7 +44,7 @@ object StyleUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
@JvmStatic fun String.fromHtml(): Spanned {
|
@JvmStatic fun String?.fromHtml(): Spanned {
|
||||||
return if (VERSION.SDK_INT >= VERSION_CODES.N) Html.fromHtml(this, Html.FROM_HTML_MODE_LEGACY)
|
return if (VERSION.SDK_INT >= VERSION_CODES.N) Html.fromHtml(this, Html.FROM_HTML_MODE_LEGACY)
|
||||||
else Html.fromHtml(this)
|
else Html.fromHtml(this)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user