Remove unnecessary remember+derivedStateOf in PlayerView
This commit is contained in:
parent
fb728efd5f
commit
1628702332
1 changed files with 1 additions and 7 deletions
|
@ -329,14 +329,8 @@ fun PlayerView(
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(bottom = 16.dp)
|
.padding(bottom = 16.dp)
|
||||||
) {
|
) {
|
||||||
val text by remember {
|
|
||||||
derivedStateOf {
|
|
||||||
DateUtils.formatElapsedTime((scrubbingPosition ?: player.currentPosition) / 1000)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
BasicText(
|
BasicText(
|
||||||
text = text,
|
text = DateUtils.formatElapsedTime((scrubbingPosition ?: player.currentPosition) / 1000),
|
||||||
style = typography.xxs.semiBold,
|
style = typography.xxs.semiBold,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
|
Loading…
Reference in a new issue