Clean up caldav location upgrade

pull/935/head
Alex Baker 4 years ago
parent 4d1370a5f5
commit 35f0f778b6

@ -10,6 +10,8 @@ public class GeofenceApi {
@Inject
public GeofenceApi() {}
public void register(Location location) {}
public void register(List<Location> activeGeofences) {}
public void cancel(Location geofence) {}

@ -191,8 +191,6 @@ public class Upgrader {
}
private void applyCaldavGeo() {
List<CaldavTask> updated = newArrayList();
List<Long> tasksWithLocations =
Lists.transform(locationDao.getActiveGeofences(), Location::getTask);
@ -216,7 +214,6 @@ public class Upgrader {
}
batch(tasksWithLocations, taskDao::touch);
caldavDao.update(updated);
}
private void applyCaldavSubtasks() {

@ -57,7 +57,6 @@ public class WorkManager {
private static final String TAG_MIDNIGHT_REFRESH = "tag_midnight_refresh";
private static final String TAG_SYNC = "tag_sync";
private static final String TAG_BACKGROUND_SYNC = "tag_background_sync";
private static final String TAG_REVERSE_GEOCODE = "tag_reverse_geocode";
private final Context context;
private final Preferences preferences;
@ -105,6 +104,9 @@ public class WorkManager {
}
public void sync(boolean immediate) {
if (workManager == null) {
return;
}
Constraints constraints =
new Constraints.Builder()
.setRequiredNetworkType(

@ -28,7 +28,6 @@ import com.google.common.base.Strings;
import com.todoroo.andlib.utility.DateUtilities;
import com.todoroo.astrid.data.Task;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.inject.Inject;
import org.tasks.R;

Loading…
Cancel
Save