mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
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:
committed by
GitHub
parent
683b0b3594
commit
b66801a022
+1
-1
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user