Fix AndroidTask.delete so that it doesn't delete all tasks

parent 78ad167a
......@@ -43,5 +43,5 @@ dependencies {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
provided 'org.projectlombok:lombok:1.16.6'
compile 'org.slf4j:slf4j-android:1.7.12'
compile 'org.slf4j:slf4j-android:1.7.13'
}
......@@ -233,7 +233,7 @@ public abstract class AndroidTask {
this.task = task;
BatchOperation batch = new BatchOperation(taskList.provider.client);
Builder builder = ContentProviderOperation.newUpdate(taskList.syncAdapterURI(taskSyncURI()));
Builder builder = ContentProviderOperation.newUpdate(taskSyncURI());
buildTask(builder, true);
batch.enqueue(builder.build());
batch.commit();
......@@ -241,7 +241,7 @@ public abstract class AndroidTask {
public int delete() throws CalendarStorageException {
try {
return taskList.provider.client.delete(taskList.syncAdapterURI(taskList.provider.tasksUri()), null, null);
return taskList.provider.client.delete(taskSyncURI(), null, null);
} catch (RemoteException e) {
throw new CalendarStorageException("Couldn't delete event", e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment