mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Improve preview
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@ open class MediaPlayerControllerStateProvider : PreviewParameterProvider<MediaPl
|
|||||||
override val values: Sequence<MediaPlayerControllerState> = sequenceOf(
|
override val values: Sequence<MediaPlayerControllerState> = sequenceOf(
|
||||||
aMediaPlayerControllerState(),
|
aMediaPlayerControllerState(),
|
||||||
aMediaPlayerControllerState(
|
aMediaPlayerControllerState(
|
||||||
isPlaying = false,
|
isPlaying = true,
|
||||||
progressInMillis = 59_000,
|
progressInMillis = 59_000,
|
||||||
durationInMillis = 83_000,
|
durationInMillis = 83_000,
|
||||||
isMuted = true,
|
isMuted = true,
|
||||||
@@ -23,7 +23,7 @@ open class MediaPlayerControllerStateProvider : PreviewParameterProvider<MediaPl
|
|||||||
|
|
||||||
private fun aMediaPlayerControllerState(
|
private fun aMediaPlayerControllerState(
|
||||||
isVisible: Boolean = true,
|
isVisible: Boolean = true,
|
||||||
isPlaying: Boolean = true,
|
isPlaying: Boolean = false,
|
||||||
progressInMillis: Long = 0,
|
progressInMillis: Long = 0,
|
||||||
// Default to 1 minute and 23 seconds
|
// Default to 1 minute and 23 seconds
|
||||||
durationInMillis: Long = 83_000,
|
durationInMillis: Long = 83_000,
|
||||||
|
|||||||
Reference in New Issue
Block a user