android: fix missing '}' issue (#487)

also run linter

Updates #cleanup

Signed-off-by: kari-ts <kari@tailscale.com>
pull/485/head
kari-ts 1 year ago committed by GitHub
parent 77eaadb360
commit 18e4b176c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -87,6 +87,7 @@ fun TailnetLockSetupView(
subtitle = stringResource(R.string.tailnet_lock_key_explainer))
}
}
}
}
@Composable
@ -97,14 +98,13 @@ private fun ExplainerView() {
ClickableText(
explainerText(),
onClick = { handler.openUri(Links.TAILNET_LOCK_KB_URL) },
style = MaterialTheme.typography.bodyMedium
)
style = MaterialTheme.typography.bodyMedium)
}
}
@Composable
fun explainerText(): AnnotatedString {
val annotatedString = buildAnnotatedString {
return buildAnnotatedString {
withStyle(SpanStyle(color = MaterialTheme.colorScheme.defaultTextColor)) {
append(stringResource(id = R.string.tailnet_lock_explainer))
}
@ -112,16 +112,14 @@ fun explainerText(): AnnotatedString {
pushStringAnnotation(tag = "tailnetLockSupportURL", annotation = Links.TAILNET_LOCK_KB_URL)
withStyle(
style = SpanStyle(
style =
SpanStyle(
color = MaterialTheme.colorScheme.link,
textDecoration = TextDecoration.Underline
)
) {
textDecoration = TextDecoration.Underline)) {
append(stringResource(id = R.string.learn_more))
}
pop()
}
return annotatedString
}
@Composable

Loading…
Cancel
Save