From 568a175735aefe858ab86598852a0249dc943a53 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 26 Aug 2025 20:18:10 -0400 Subject: [PATCH] fixes fdroid build --- .../ui/components/TranslatableRichTextViewer.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt b/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt index b6e13bc24..9862203d4 100644 --- a/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt +++ b/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt @@ -22,6 +22,8 @@ package com.vitorpamplona.amethyst.ui.components import androidx.compose.runtime.Composable import androidx.compose.runtime.MutableState +import androidx.compose.runtime.getValue +import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import com.vitorpamplona.amethyst.ui.navigation.navs.INav @@ -52,3 +54,11 @@ fun TranslatableRichTextViewer( accountViewModel, nav, ) + +@Composable +fun TranslatableRichTextViewer( + content: String, + id: String, + accountViewModel: AccountViewModel, + displayText: @Composable (String) -> Unit, +) = displayText(content)