From 1628702332aad412e2f62114ecf6c4920a6248f3 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Wed, 8 Jun 2022 16:19:56 +0200 Subject: [PATCH] Remove unnecessary remember+derivedStateOf in PlayerView --- .../kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt index 714c169..c9dec75 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt @@ -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,