mirror of
https://github.com/etesync/android
synced 2024-11-23 00:18:19 +00:00
Don't delete resources without file name (fixes #33)
This commit is contained in:
parent
a01c531784
commit
b2ab24afd2
@ -49,6 +49,7 @@ public class SyncManager {
|
|||||||
Log.i(TAG, "Remotely removing " + deletedResources.length + " deleted resource(s) (if not changed)");
|
Log.i(TAG, "Remotely removing " + deletedResources.length + " deleted resource(s) (if not changed)");
|
||||||
for (Resource res : deletedResources) {
|
for (Resource res : deletedResources) {
|
||||||
try {
|
try {
|
||||||
|
if (res.getName() != null) // is this resource even present remotely?
|
||||||
dav.delete(res);
|
dav.delete(res);
|
||||||
} catch(PreconditionFailedException e) {
|
} catch(PreconditionFailedException e) {
|
||||||
Log.i(TAG, "Locally-deleted resource has been changed on the server in the meanwhile");
|
Log.i(TAG, "Locally-deleted resource has been changed on the server in the meanwhile");
|
||||||
|
Loading…
Reference in New Issue
Block a user