mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-31 20:27:44 +00:00
b308996885
// FREEBIE
26 lines
610 B
Java
26 lines
610 B
Java
package org.thoughtcrime.securesms.jobs;
|
|
|
|
import android.content.Context;
|
|
|
|
import org.whispersystems.jobqueue.Job;
|
|
import org.whispersystems.jobqueue.JobParameters;
|
|
import org.whispersystems.jobqueue.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;
|
|
}
|
|
}
|