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.
tasks/app/src/main/java/org/tasks/injection/InjectingJobIntentService.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);
}