|
|
|
@ -51,11 +51,6 @@ public class GeofenceService {
|
|
|
|
return changed;
|
|
|
|
return changed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface SynchronizeGeofenceCallback {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void beforeDelete(Location location);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean synchronizeMetadata(long taskId, List<Location> locations,
|
|
|
|
private boolean synchronizeMetadata(long taskId, List<Location> locations,
|
|
|
|
final SynchronizeGeofenceCallback callback) {
|
|
|
|
final SynchronizeGeofenceCallback callback) {
|
|
|
|
boolean dirty = false;
|
|
|
|
boolean dirty = false;
|
|
|
|
@ -99,4 +94,9 @@ public class GeofenceService {
|
|
|
|
private List<Location> getGeofencesForTask(long taskId) {
|
|
|
|
private List<Location> getGeofencesForTask(long taskId) {
|
|
|
|
return locationDao.getActiveGeofences(taskId);
|
|
|
|
return locationDao.getActiveGeofences(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public interface SynchronizeGeofenceCallback {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void beforeDelete(Location location);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|