hms toString
This commit is contained in:
parent
ddbac51c9d
commit
59c4d8bb5b
2 changed files with 2 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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()
|
||||
) {
|
||||
|
|
Reference in a new issue