Skip to content

Commit

Permalink
Fix DefaultLocale issue in SaturationPreferenceDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelguzmanr committed May 15, 2024
1 parent b70b9d1 commit 9d580b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import androidx.compose.ui.window.Dialog
import de.langerhans.odintools.R
import de.langerhans.odintools.main.CheckboxPreferenceUiModel
import de.langerhans.odintools.ui.theme.Typography
import java.util.Locale
import kotlin.math.roundToInt

@Composable
Expand Down Expand Up @@ -253,7 +254,7 @@ fun SaturationPreferenceDialog(initialValue: Float, onCancel: () -> Unit, onSave
.padding(end = 4.dp),
)
Text(
text = String.format("%.1f", userValue),
text = String.format(Locale.getDefault(), "%.1f", userValue),
style = MaterialTheme.typography.bodyLarge,
)
}
Expand Down

0 comments on commit 9d580b4

Please sign in to comment.