Ensure all Workers have a public WorkManager constructor.

This commit is contained in:
Greyson Parrelli 2019-01-14 15:15:53 -08:00
parent 37b9e4f200
commit 5450967d00
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ public class AttachmentUploadJob extends ContextJob implements InjectableType {
private AttachmentId attachmentId; private AttachmentId attachmentId;
@Inject SignalServiceMessageSender messageSender; @Inject SignalServiceMessageSender messageSender;
protected AttachmentUploadJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) { public AttachmentUploadJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {
super(context, workerParameters); super(context, workerParameters);
} }

View File

@ -13,7 +13,7 @@ public abstract class ContextJob extends Job implements ContextDependent {
protected transient Context context; protected transient Context context;
protected ContextJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) { public ContextJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {
super(context, workerParameters); super(context, workerParameters);
} }

View File

@ -31,7 +31,7 @@ public abstract class SendJob extends ContextJob {
@SuppressWarnings("unused") @SuppressWarnings("unused")
private final static String TAG = SendJob.class.getSimpleName(); private final static String TAG = SendJob.class.getSimpleName();
protected SendJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) { public SendJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {
super(context, workerParameters); super(context, workerParameters);
} }