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()
|
val hms = sessionActions.getTimer().getHoursMinutesSeconds()
|
||||||
Column {
|
Column {
|
||||||
Text(
|
Text(
|
||||||
text = "${hms.hours} : ${hms.minutes} : ${hms.seconds}",
|
text = hms.toString(),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(50.dp),
|
.padding(50.dp),
|
||||||
|
|
|
@ -48,8 +48,7 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
|
||||||
val studyTime: Int = sessionReport.studyTime
|
val studyTime: Int = sessionReport.studyTime
|
||||||
val hms: HoursMinutesSeconds = Time(studyTime).getAsHMS()
|
val hms: HoursMinutesSeconds = Time(studyTime).getAsHMS()
|
||||||
Column {
|
Column {
|
||||||
Text(text = "You studied: ${hms.hours} : ${hms.minutes} : ${hms.seconds}")
|
Text(text = "You studied: $hms")
|
||||||
|
|
||||||
BasicButton(
|
BasicButton(
|
||||||
R.string.save, Modifier.basicButton()
|
R.string.save, Modifier.basicButton()
|
||||||
) {
|
) {
|
||||||
|
|
Reference in a new issue