mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
521 B
Java
19 lines
521 B
Java
package org.tasks.injection;
|
|
|
|
import android.content.Intent;
|
|
import android.support.annotation.NonNull;
|
|
import android.support.v4.app.JobIntentService;
|
|
|
|
public abstract class InjectingJobIntentService extends JobIntentService {
|
|
|
|
@Override
|
|
protected void onHandleWork(@NonNull Intent intent) {
|
|
inject(((InjectingApplication) getApplication())
|
|
.getComponent()
|
|
.plus(new IntentServiceModule()));
|
|
}
|
|
|
|
|
|
protected abstract void inject(IntentServiceComponent component);
|
|
}
|