Don't set attachment progress to 1 if it's complete.
This commit is contained in:
parent
c2ee621f64
commit
9c7f2250b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue