kopia lustrzana https://github.com/ryukoposting/Signal-Android
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 #8427fork-5.53.8
rodzic
bfdad2f47c
commit
038238a333
|
@ -63,7 +63,7 @@ public class AttachmentDownloadJob extends ContextJob implements InjectableType
|
||||||
|
|
||||||
public AttachmentDownloadJob(Context context, long messageId, AttachmentId attachmentId, boolean manual) {
|
public AttachmentDownloadJob(Context context, long messageId, AttachmentId attachmentId, boolean manual) {
|
||||||
super(context, JobParameters.newBuilder()
|
super(context, JobParameters.newBuilder()
|
||||||
.withGroupId(AttachmentDownloadJob.class.getCanonicalName())
|
.withGroupId(AttachmentDownloadJob.class.getSimpleName() + attachmentId.getRowId() + "-" + attachmentId.getUniqueId())
|
||||||
.withNetworkRequirement()
|
.withNetworkRequirement()
|
||||||
.create());
|
.create());
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue