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.
28 lines
634 B
Java
28 lines
634 B
Java
package org.tasks.scheduling;
|
|
|
|
import android.content.Intent;
|
|
|
|
import org.tasks.injection.InjectingIntentService;
|
|
|
|
import javax.inject.Inject;
|
|
|
|
import timber.log.Timber;
|
|
|
|
public class RefreshSchedulerIntentService extends InjectingIntentService {
|
|
|
|
@Inject RefreshScheduler refreshScheduler;
|
|
|
|
public RefreshSchedulerIntentService() {
|
|
super(RefreshSchedulerIntentService.class.getSimpleName());
|
|
}
|
|
|
|
@Override
|
|
protected void onHandleIntent(Intent intent) {
|
|
super.onHandleIntent(intent);
|
|
|
|
Timber.d("onHandleIntent(%s)", intent);
|
|
|
|
refreshScheduler.scheduleApplicationRefreshes();
|
|
}
|
|
}
|