From de3431e374a99f8608b78e002b16a7e50ce55a32 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 6 Feb 2023 08:32:35 -0500 Subject: [PATCH] Fixing the order of url text and link --- .../com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt index 533cf0dd8..10b81b0c6 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RichTextViewer.kt @@ -126,7 +126,7 @@ fun RichTextViewer(content: String, canPreview: Boolean, tags: List } else if (Patterns.PHONE.matcher(word).matches() && word.length > 6) { ClickablePhone(word) } else if (noProtocolUrlValidator.matcher(word).matches()) { - ClickableUrl("https://$word", word) + ClickableUrl(word, "https://$word") } else if (tagIndex.matcher(word).matches() && tags != null) { TagLink(word, tags, navController) } else if (isBechLink(word)) {