From 631dd63448c8d5dc0923ccc01ca39b85af0e4d9b Mon Sep 17 00:00:00 2001 From: FunkyMuse Date: Wed, 20 Sep 2023 10:40:15 +0200 Subject: [PATCH] fix: update link color on start --- .../kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt index f30b60a..b348e82 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt @@ -69,7 +69,6 @@ internal fun MainScreen( textSize = 16.sp.value setLineSpacing(3.dp.value, 1f) gravity = Gravity.CENTER_HORIZONTAL - setLinkTextColor(linkColor) Linkify.addLinks(this, Linkify.WEB_URLS) Linkify.addLinks(this, Linkify.EMAIL_ADDRESSES) } @@ -78,6 +77,7 @@ internal fun MainScreen( .padding(bottom = paddingValues.calculateBottomPadding()) .padding(40.dp), update = { textView -> + textView.setLinkTextColor(linkColor) textView.setTextColor(textColor) } )