hms toString

This commit is contained in:
lbarraga 2023-05-01 13:00:18 +02:00
parent ddbac51c9d
commit 59c4d8bb5b
2 changed files with 2 additions and 3 deletions

View file

@ -78,7 +78,7 @@ abstract class AbstractSessionScreen {
val hms = sessionActions.getTimer().getHoursMinutesSeconds()
Column {
Text(
text = "${hms.hours} : ${hms.minutes} : ${hms.seconds}",
text = hms.toString(),
modifier = Modifier
.fillMaxWidth()
.padding(50.dp),

View file

@ -48,8 +48,7 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
val studyTime: Int = sessionReport.studyTime
val hms: HoursMinutesSeconds = Time(studyTime).getAsHMS()
Column {
Text(text = "You studied: ${hms.hours} : ${hms.minutes} : ${hms.seconds}")
Text(text = "You studied: $hms")
BasicButton(
R.string.save, Modifier.basicButton()
) {