SliderPreference: Don’t show intermediate values

This commit is contained in:
Patryk Michalik
2021-03-25 11:37:39 +01:00
parent f033534b80
commit 0f83d89584
@@ -37,7 +37,7 @@ fun SliderPreference(
) {
Text(
text = if (showAsPercentage) {
"${(value.round(2) * 100).toInt()}%"
"${(value.round(1) * 100).toInt()}%"
} else {
"${value.roundToInt()}"
}