This commit is contained in:
Benoit Marty 2024-11-27 16:12:28 +01:00
parent c46c54efa2
commit 9916efefa2
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ import java.util.Locale
fun Long.toHumanReadableDuration(): String { fun Long.toHumanReadableDuration(): String {
val inSeconds = this / 1_000 val inSeconds = this / 1_000
val hours = inSeconds / 3_600 val hours = inSeconds / 3_600
val minutes = (inSeconds % 3_600) / 60 val minutes = inSeconds % 3_600 / 60
val seconds = inSeconds % 60 val seconds = inSeconds % 60
return if (hours > 0) { return if (hours > 0) {
String.format(Locale.US, "%d:%02d:%02d", hours, minutes, seconds) String.format(Locale.US, "%d:%02d:%02d", hours, minutes, seconds)

View file

@ -139,7 +139,7 @@ fun MediaPlayerControllerView(
@PreviewsDayNight @PreviewsDayNight
@Composable @Composable
private fun MediaPlayerControlBarPreview( internal fun MediaPlayerControllerViewPreview(
@PreviewParameter(MediaPlayerControllerStateProvider::class) state: MediaPlayerControllerState @PreviewParameter(MediaPlayerControllerStateProvider::class) state: MediaPlayerControllerState
) = ElementPreview { ) = ElementPreview {
MediaPlayerControllerView( MediaPlayerControllerView(