fix: update link color on start

This commit is contained in:
FunkyMuse 2023-09-20 10:40:15 +02:00
parent 9a4d13e279
commit 631dd63448
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,6 @@ internal fun MainScreen(
textSize = 16.sp.value textSize = 16.sp.value
setLineSpacing(3.dp.value, 1f) setLineSpacing(3.dp.value, 1f)
gravity = Gravity.CENTER_HORIZONTAL gravity = Gravity.CENTER_HORIZONTAL
setLinkTextColor(linkColor)
Linkify.addLinks(this, Linkify.WEB_URLS) Linkify.addLinks(this, Linkify.WEB_URLS)
Linkify.addLinks(this, Linkify.EMAIL_ADDRESSES) Linkify.addLinks(this, Linkify.EMAIL_ADDRESSES)
} }
@ -78,6 +77,7 @@ internal fun MainScreen(
.padding(bottom = paddingValues.calculateBottomPadding()) .padding(bottom = paddingValues.calculateBottomPadding())
.padding(40.dp), .padding(40.dp),
update = { textView -> update = { textView ->
textView.setLinkTextColor(linkColor)
textView.setTextColor(textColor) textView.setTextColor(textColor)
} }
) )