From bad6dedd22d4bbec478db07d8baec71b06a2b1f3 Mon Sep 17 00:00:00 2001 From: Kevinlinpr Date: Thu, 3 Oct 2024 04:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8B=BE=E9=80=89=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aiosman/riderpro/ui/composables/PolicyCheckbox.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/aiosman/riderpro/ui/composables/PolicyCheckbox.kt b/app/src/main/java/com/aiosman/riderpro/ui/composables/PolicyCheckbox.kt index 03478f6..cdebfbd 100644 --- a/app/src/main/java/com/aiosman/riderpro/ui/composables/PolicyCheckbox.kt +++ b/app/src/main/java/com/aiosman/riderpro/ui/composables/PolicyCheckbox.kt @@ -89,17 +89,20 @@ fun PolicyCheckbox( val keyword = stringResource(R.string.private_policy_keyword) val template = stringResource(R.string.private_policy_template) append(template) + append(" ") withStyle(style = SpanStyle(color = if (error) Color.Red else Color.Black)) { append(keyword) } + addStyle( style = SpanStyle( - color = Color.Blue, + color = Color.Red, textDecoration = TextDecoration.Underline ), - start = template.length, - end = template.length + keyword.length + start = template.length + 1, + end = template.length + keyword.length + 1 ) + append(".") } ClickableText( text = text,