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
10 years ago
|
package org.tasks.injection;
|
||
|
|
||
|
import android.content.Intent;
|
||
7 years ago
|
import android.support.annotation.NonNull;
|
||
|
import android.support.v4.app.JobIntentService;
|
||
10 years ago
|
|
||
7 years ago
|
public abstract class InjectingJobIntentService extends JobIntentService {
|
||
10 years ago
|
|
||
|
@Override
|
||
7 years ago
|
protected void onHandleWork(@NonNull Intent intent) {
|
||
8 years ago
|
inject(((InjectingApplication) getApplication())
|
||
|
.getComponent()
|
||
|
.plus(new IntentServiceModule()));
|
||
10 years ago
|
}
|
||
8 years ago
|
|
||
7 years ago
|
|
||
8 years ago
|
protected abstract void inject(IntentServiceComponent component);
|
||
10 years ago
|
}
|