Skip to content

Commit 7e3844c

Browse files
committed
Updates code snippet for https://developer.android.com/quick-guides/content/support-multiple-links?hl=en (Multiple links in a text string) from deprecated pushStringAnnotation() to currently supported withLink().
1 parent a7485d8 commit 7e3844c

File tree

1 file changed

+1
-1
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/text

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/text/TextSnippets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ fun AnnotatedStringWithLinkSample() {
556556
append("Go to the ")
557557
withLink(
558558
LinkAnnotation.Url(
559-
"https://developer.android.com/jetpack/compose",
559+
"https://developer.android.com/",
560560
TextLinkStyles(style = SpanStyle(color = Color.Blue))
561561
)
562562
) {

0 commit comments

Comments
 (0)