From 55182938136b0dfa376b1e4a2a9363a71232b599 Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Tue, 25 Mar 2025 19:54:15 +0000 Subject: [PATCH 1/2] use existing helper function that URL decodes message text --- .../vitorpamplona/amethyst/ui/navigation/AppNavigation.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt index 47b4e7b47..589a7c4f5 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt @@ -337,7 +337,7 @@ fun AppNavigation( popEnterTransition = { scaleIn }, popExitTransition = { slideOutVerticallyToBottom }, ) { - val draftMessage = it.arguments?.getString("message")?.ifBlank { null } + val draftMessage = it.message()?.ifBlank { null } val attachment = it.arguments?.getString("attachment")?.ifBlank { null }?.let { Uri.parse(it) @@ -347,8 +347,8 @@ fun AppNavigation( val fork = it.arguments?.getString("fork") val version = it.arguments?.getString("version") val draft = it.arguments?.getString("draft") - val enableMessageInterface = it.arguments?.getBoolean("enableMessageInterface") ?: false - val enableGeolocation = it.arguments?.getBoolean("enableGeolocation") ?: false + val enableMessageInterface = it.arguments?.getBoolean("enableMessageInterface") == true + val enableGeolocation = it.arguments?.getBoolean("enableGeolocation") == true NewPostScreen( message = draftMessage, From 7ad47bb137f8f1d8e6549af8ca04f5e500363858 Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Tue, 25 Mar 2025 21:55:12 +0000 Subject: [PATCH 2/2] Update README.md remove fdroid from readme --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 851ee8374..1b6b6ac5d 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,6 @@ alt="Get it on Obtaininum" height="70">](https://github.com/ImranR98/Obtainium) [Get it on GitHub](https://github.com/vitorpamplona/amethyst/releases) -[Get it on F-Droid](https://f-droid.org/packages/com.vitorpamplona.amethyst/) [Get it on Google Play](https://play.google.com/store/apps/details?id=com.vitorpamplona.amethyst)