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 {
val inSeconds = this / 1_000
val hours = inSeconds / 3_600
val minutes = (inSeconds % 3_600) / 60
val minutes = inSeconds % 3_600 / 60
val seconds = inSeconds % 60
return if (hours > 0) {
String.format(Locale.US, "%d:%02d:%02d", hours, minutes, seconds)

View File

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