Android: Use 0.5 unit step size and show decimal for numeric settings

In some settings where the default value could not be evenly divided by the step size for the slider, there would be a crash. This increases the precision of all double numeric settings to 0.5 and now shows the decimal that you couldn't see before.
This commit is contained in:
Charles Lombardo 2023-09-23 10:48:23 -04:00
parent 853d93d14a
commit f205a20d3f
1 changed files with 2 additions and 2 deletions

View File

@ -2356,8 +2356,8 @@ class SettingsFragmentPresenter(
ceil(setting.getDoubleMin()).toFloat(), ceil(setting.getDoubleMin()).toFloat(),
floor(setting.getDoubleMax()).toFloat(), floor(setting.getDoubleMax()).toFloat(),
setting.getUiSuffix(), setting.getUiSuffix(),
1.0f, 0.5f,
false true
) )
) )