From 89c2e9d2e001f06a757cc02119ff34a6774db974 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 4 Apr 2024 17:19:03 -0400 Subject: [PATCH] Changes precision of Zap Splits to 1% steps --- .../java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt index e5fa37c7a..19dabab7d 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt @@ -1143,7 +1143,7 @@ fun FowardZapTo( Slider( value = splitItem.percentage, onValueChange = { sliderValue -> - val rounded = (round(sliderValue * 20)) / 20.0f + val rounded = (round(sliderValue * 100)) / 100.0f postViewModel.updateZapPercentage(index, rounded) }, modifier = Modifier.weight(1.5f),