Fix crash when opening a URL with associated text (#699)
* Fix crash when opening a URL with associated text * Enforce using an `Activity` instead of a `Context` in `SafeUriHandler`.
This commit is contained in:
parent
683b0b3594
commit
b66801a022
5 changed files with 45 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ private fun AnnotatedString.Builder.appendLink(link: Element) {
|
|||
val permalinkData = PermalinkParser.parse(uriString)
|
||||
when (permalinkData) {
|
||||
is PermalinkData.FallbackLink -> {
|
||||
pushStringAnnotation(tag = "URL", annotation = link.ownText())
|
||||
pushStringAnnotation(tag = "URL", annotation = permalinkData.uri.toString())
|
||||
withStyle(
|
||||
style = SpanStyle(color = LinkColor)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue