Cleanup
This commit is contained in:
parent
c46c54efa2
commit
9916efefa2
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue