SliderPreference: Don’t show intermediate values
This commit is contained in:
@@ -37,7 +37,7 @@ fun SliderPreference(
|
||||
) {
|
||||
Text(
|
||||
text = if (showAsPercentage) {
|
||||
"${(value.round(2) * 100).toInt()}%"
|
||||
"${(value.round(1) * 100).toInt()}%"
|
||||
} else {
|
||||
"${value.roundToInt()}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user