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); } }