Allow multiple attachments to download at once.

Not only will this be faster, but it serves as a mitigation
for the times when WorkManager gets 'stuck'.

Fixes #8427
This commit is contained in:
Greyson Parrelli 2018-12-06 23:29:55 -08:00
parent bfdad2f47c
commit 038238a333

View File

@ -63,7 +63,7 @@ public class AttachmentDownloadJob extends ContextJob implements InjectableType
public AttachmentDownloadJob(Context context, long messageId, AttachmentId attachmentId, boolean manual) {
super(context, JobParameters.newBuilder()
.withGroupId(AttachmentDownloadJob.class.getCanonicalName())
.withGroupId(AttachmentDownloadJob.class.getSimpleName() + attachmentId.getRowId() + "-" + attachmentId.getUniqueId())
.withNetworkRequirement()
.create());