File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
ui/src/main/java/jp/numero/dagashiapp/ui/component Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ kotlin = "2.0.10"
4
4
ksp = " 2.0.10-1.0.24"
5
5
6
6
lifecycle = " 2.8.4"
7
- compose = " 1.7.0-beta01 "
7
+ compose = " 1.7.0-beta07 "
8
8
material3 = " 1.3.0-beta01"
9
9
material3Adaptive = " 1.0.0-beta04"
10
10
glance = " 1.0.0"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import androidx.compose.ui.graphics.Color
10
10
import androidx.compose.ui.text.AnnotatedString
11
11
import androidx.compose.ui.text.LinkAnnotation
12
12
import androidx.compose.ui.text.SpanStyle
13
+ import androidx.compose.ui.text.TextLinkStyles
13
14
import androidx.compose.ui.text.TextStyle
14
15
import androidx.compose.ui.text.buildAnnotatedString
15
16
import androidx.compose.ui.text.withLink
@@ -75,7 +76,9 @@ private fun AnnotatedString.Builder.appendFromParsedTree(
75
76
withLink(
76
77
LinkAnnotation .Url (
77
78
url = makeXssSafeDestination(linkValue).toString(),
78
- style = SpanStyle (color = linkColor)
79
+ styles = TextLinkStyles (
80
+ style = SpanStyle (color = linkColor)
81
+ ),
79
82
)
80
83
) {
81
84
append(
@@ -102,7 +105,9 @@ private fun AnnotatedString.Builder.appendFromParsedTree(
102
105
withLink(
103
106
LinkAnnotation .Url (
104
107
url = makeXssSafeDestination(value).toString(),
105
- style = SpanStyle (color = linkColor)
108
+ styles = TextLinkStyles (
109
+ style = SpanStyle (color = linkColor)
110
+ ),
106
111
)
107
112
) {
108
113
append(value)
You can’t perform that action at this time.
0 commit comments