Remove unnecessary remember+derivedStateOf in PlayerView

This commit is contained in:
vfsfitvnm 2022-06-08 16:19:56 +02:00
parent fb728efd5f
commit 1628702332

View file

@ -329,14 +329,8 @@ fun PlayerView(
.fillMaxWidth()
.padding(bottom = 16.dp)
) {
val text by remember {
derivedStateOf {
DateUtils.formatElapsedTime((scrubbingPosition ?: player.currentPosition) / 1000)
}
}
BasicText(
text = text,
text = DateUtils.formatElapsedTime((scrubbingPosition ?: player.currentPosition) / 1000),
style = typography.xxs.semiBold,
maxLines = 1,
overflow = TextOverflow.Ellipsis,