We have to make some changes, and it's gotten to the point where maintaining it as a separate library is more hassle than it's worth, especially with Google releasing WorkManager as the preferred job scheduling library.
25 lines
640 B
Java
25 lines
640 B
Java
package org.thoughtcrime.securesms.jobs;
|
|
|
|
import android.content.Context;
|
|
|
|
import org.thoughtcrime.securesms.jobmanager.Job;
|
|
import org.thoughtcrime.securesms.jobmanager.JobParameters;
|
|
import org.thoughtcrime.securesms.jobmanager.dependencies.ContextDependent;
|
|
|
|
public abstract class ContextJob extends Job implements ContextDependent {
|
|
|
|
protected transient Context context;
|
|
|
|
protected ContextJob(Context context, JobParameters parameters) {
|
|
super(parameters);
|
|
this.context = context;
|
|
}
|
|
|
|
public void setContext(Context context) {
|
|
this.context = context;
|
|
}
|
|
|
|
protected Context getContext() {
|
|
return context;
|
|
}
|
|
}
|