From 99b722962875a09bbbaf96482622d17d3e77a076 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 28 Jul 2024 12:49:38 +0200 Subject: [PATCH] so you can't put a number when formatting as float --- .../java/eu/m724/vastapp/activity/dashboard/screen/Dashboard.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Dashboard.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Dashboard.kt index 0593842..1a69ee6 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Dashboard.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Dashboard.kt @@ -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)