so you can't put a number when formatting as float

This commit is contained in:
Minecon724 2024-07-28 12:49:38 +02:00
parent 115b5adb7a
commit 99b7229628
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -172,7 +172,7 @@ fun balanceColor(balance: Double, warningThreshold: Double): Color {
@Composable @Composable
fun formatTime(seconds: Int): String { fun formatTime(seconds: Int): String {
if (seconds <= 0) if (seconds <= 0)
return stringResource(id = R.string.time_minutes_short, 0) return stringResource(id = R.string.time_minutes_short, 0.0)
val minutes: Double = seconds / 60.0 val minutes: Double = seconds / 60.0
if (minutes < 60) if (minutes < 60)