mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 10:46:50 +00:00
Only show playable videos in the media preview fragment.
This commit is contained in:
committed by
mtang-signal
parent
32a00b5c75
commit
22dd1da985
@@ -66,7 +66,9 @@ class MediaPreviewRepository {
|
||||
|
||||
for (i in 0..limit) {
|
||||
val element = MediaTable.MediaRecord.from(cursor)
|
||||
mediaRecords.add(element)
|
||||
if (element.attachment?.transferState == AttachmentTable.TRANSFER_PROGRESS_DONE || element.attachment?.transferState == AttachmentTable.TRANSFER_PROGRESS_STARTED) {
|
||||
mediaRecords.add(element)
|
||||
}
|
||||
if (!cursor.moveToNext()) {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user