From 02d60754b6ff7837645bb360ad4719b2d4983b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 5 Apr 2021 20:38:51 +0200 Subject: [PATCH] [UI] Fix changelog dialog link highlighting. --- .../edziennik/ui/dialogs/changelog/ChangelogDialog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/changelog/ChangelogDialog.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/changelog/ChangelogDialog.kt index dfcb12d5..e492ae66 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/changelog/ChangelogDialog.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/changelog/ChangelogDialog.kt @@ -17,6 +17,7 @@ import kotlinx.coroutines.Job import pl.szczodrzynski.edziennik.App import pl.szczodrzynski.edziennik.R import pl.szczodrzynski.edziennik.dp +import pl.szczodrzynski.edziennik.utils.BetterLinkMovementMethod import kotlin.coroutines.CoroutineContext class ChangelogDialog( @@ -53,6 +54,8 @@ class ChangelogDialog( textView.text = Html.fromHtml(text.replace("
  • ", "
  • - ")) } + textView.movementMethod = BetterLinkMovementMethod.getInstance() + val scrollView = ScrollView(activity) scrollView.addView(textView) @@ -67,4 +70,4 @@ class ChangelogDialog( } .show() }} -} \ No newline at end of file +}