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/scheduling/GeofenceSchedulingIntentSer...

32 lines
753 B
Java

package org.tasks.scheduling;
import android.content.Intent;
import org.tasks.injection.InjectingJobIntentService;
import org.tasks.injection.IntentServiceComponent;
import org.tasks.location.GeofenceService;
import javax.inject.Inject;
import timber.log.Timber;
public class GeofenceSchedulingIntentService extends InjectingJobIntentService {
@Inject GeofenceService geofenceService;
@Override
protected void onHandleWork(Intent intent) {
super.onHandleWork(intent);
Timber.d("onHandleIntent(%s)", intent);
geofenceService.cancelGeofences();
geofenceService.setupGeofences();
}
@Override
protected void inject(IntentServiceComponent component) {
component.inject(this);
}
}