Skip to content

Commit

Permalink
Replaced deprecated UrlAnnotation calls
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Oct 16, 2024
1 parent 3d00bc2 commit 560de6b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package de.sipgate.dachlatten.markdown
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.ExperimentalTextApi
import androidx.compose.ui.text.LinkAnnotation
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.UrlAnnotation
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
Expand Down Expand Up @@ -146,8 +146,8 @@ private fun AnnotatedString.Builder.processNode(
processNode(children[3], markdown, colors, tempNodesToRemoveAfter)
tempNodesToRemoveAfter(children[3])

addUrlAnnotation(
UrlAnnotation(linkDestination.toString()),
addLink(
LinkAnnotation.Url(linkDestination.toString()),
linkTextNode.startOffset,
linkTextNode.endOffset
)
Expand Down

0 comments on commit 560de6b

Please sign in to comment.