mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Preview: add video item in the list
This commit is contained in:
+17
-9
@@ -27,14 +27,6 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
|
|||||||
formattedFileSize = "2.5 MB",
|
formattedFileSize = "2.5 MB",
|
||||||
fileExtension = "PDF",
|
fileExtension = "PDF",
|
||||||
),
|
),
|
||||||
anAttachmentItem(
|
|
||||||
filename = "photo.jpg",
|
|
||||||
mimeType = "image/jpeg",
|
|
||||||
thumbnailSource = MediaSource(url = "thumb", json = ""),
|
|
||||||
fileSize = null,
|
|
||||||
formattedFileSize = "1.2 MB",
|
|
||||||
fileExtension = "JPG",
|
|
||||||
),
|
|
||||||
anAttachmentItem(
|
anAttachmentItem(
|
||||||
filename = "spreadsheet.xlsx",
|
filename = "spreadsheet.xlsx",
|
||||||
mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
@@ -46,7 +38,7 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
|
|||||||
),
|
),
|
||||||
aTimelineItemAttachmentsContent(
|
aTimelineItemAttachmentsContent(
|
||||||
body = "Files",
|
body = "Files",
|
||||||
caption = "Important documents",
|
caption = "Files mixed with media",
|
||||||
attachments = listOf(
|
attachments = listOf(
|
||||||
anAttachmentItem(
|
anAttachmentItem(
|
||||||
filename = "report.pdf",
|
filename = "report.pdf",
|
||||||
@@ -62,6 +54,22 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
|
|||||||
formattedFileSize = "12 KB",
|
formattedFileSize = "12 KB",
|
||||||
fileExtension = "TXT",
|
fileExtension = "TXT",
|
||||||
),
|
),
|
||||||
|
anAttachmentItem(
|
||||||
|
filename = "photo.jpg",
|
||||||
|
mimeType = "image/jpeg",
|
||||||
|
thumbnailSource = MediaSource(url = "thumb", json = ""),
|
||||||
|
fileSize = null,
|
||||||
|
formattedFileSize = "1.2 MB",
|
||||||
|
fileExtension = "JPG",
|
||||||
|
),
|
||||||
|
anAttachmentItem(
|
||||||
|
filename = "video.mp4",
|
||||||
|
mimeType = "video/mp4",
|
||||||
|
thumbnailSource = MediaSource(url = "thumb", json = ""),
|
||||||
|
fileSize = null,
|
||||||
|
formattedFileSize = "15 MB",
|
||||||
|
fileExtension = "MP4",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user