Trim leading zero in position and duration texts in player controls
This commit is contained in:
parent
ccf5a35ff6
commit
b7046e3217
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ fun Controls(
|
|||
.fillMaxWidth()
|
||||
) {
|
||||
BasicText(
|
||||
text = DateUtils.formatElapsedTime((scrubbingPosition ?: position) / 1000),
|
||||
text = DateUtils.formatElapsedTime((scrubbingPosition ?: position) / 1000).removePrefix("0"),
|
||||
style = typography.xxs.semiBold,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
|
@ -158,7 +158,7 @@ fun Controls(
|
|||
|
||||
if (duration != C.TIME_UNSET) {
|
||||
BasicText(
|
||||
text = DateUtils.formatElapsedTime(duration / 1000),
|
||||
text = DateUtils.formatElapsedTime(duration / 1000).removePrefix("0"),
|
||||
style = typography.xxs.semiBold,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
|
|
Loading…
Reference in a new issue