so you can't put a number when formatting as float
This commit is contained in:
parent
115b5adb7a
commit
99b7229628
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ fun balanceColor(balance: Double, warningThreshold: Double): Color {
|
|||
@Composable
|
||||
fun formatTime(seconds: Int): String {
|
||||
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
|
||||
if (minutes < 60)
|
||||
|
|
Loading…
Reference in a new issue