mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Improve preview of AttachmentsPreviewViewPreview to have the case with a caption.
This commit is contained in:
committed by
Benoit Marty
parent
4389657a0d
commit
512ed810f7
+7
-2
@@ -24,7 +24,12 @@ open class AttachmentsPreviewStateProvider : PreviewParameterProvider<Attachment
|
|||||||
override val values: Sequence<AttachmentsPreviewState>
|
override val values: Sequence<AttachmentsPreviewState>
|
||||||
get() = sequenceOf(
|
get() = sequenceOf(
|
||||||
anAttachmentsPreviewState(),
|
anAttachmentsPreviewState(),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = false)),
|
anAttachmentsPreviewState(
|
||||||
|
sendActionState = SendActionState.Sending.Processing(displayProgress = false),
|
||||||
|
textEditorState = aTextEditorStateMarkdown(
|
||||||
|
initialText = "This is a caption!"
|
||||||
|
)
|
||||||
|
),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = true)),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = true)),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.ReadyToUpload(aMediaUploadInfo())),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.ReadyToUpload(aMediaUploadInfo())),
|
||||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Uploading(0.5f, aMediaUploadInfo())),
|
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Uploading(0.5f, aMediaUploadInfo())),
|
||||||
@@ -66,4 +71,4 @@ fun aMediaUploadInfo(
|
|||||||
blurhash = null,
|
blurhash = null,
|
||||||
),
|
),
|
||||||
thumbnailFile = thumbnailFilePath?.let { File(it) },
|
thumbnailFile = thumbnailFilePath?.let { File(it) },
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user