mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 20:23:19 +00:00
Don't set attachment progress to 1 if it's complete.
This commit is contained in:
committed by
Clark Chen
parent
c2ee621f64
commit
9c7f2250b9
@@ -549,7 +549,7 @@ class TransferControlView @JvmOverloads constructor(context: Context, attrs: Att
|
||||
for (slide in slides) {
|
||||
val attachment = slide.asAttachment()
|
||||
if (attachment.transferState == AttachmentTable.TRANSFER_PROGRESS_DONE) {
|
||||
networkProgress[attachment] = Progress(1L, attachment.size)
|
||||
networkProgress[attachment] = Progress(attachment.size, attachment.size)
|
||||
} else if (!MediaUtil.isInstantVideoSupported(slide)) {
|
||||
allStreamableOrDone = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user