X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/b9ef747a0be9e50d50b709474daf9dca47d60f5f..f15c2f32ceea2f2e6abff36f828a37196db3040a:/src/com/owncloud/android/operations/SynchronizeFolderOperation.java diff --git a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java index 05962324..e4f96620 100644 --- a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java @@ -294,8 +294,7 @@ public class SynchronizeFolderOperation extends SyncOperation { } // get current data about local contents of the folder to synchronize - // TODO Enable when "On Device" is recovered ? - List localFiles = storageManager.getFolderContent(mLocalFolder/*, false*/); + List localFiles = storageManager.getFolderContent(mLocalFolder, false); Map localFilesMap = new HashMap(localFiles.size()); for (OCFile file : localFiles) { localFilesMap.put(file.getRemotePath(), file); @@ -340,7 +339,7 @@ public class SynchronizeFolderOperation extends SyncOperation { } updatedFile.setPublicLink(localFile.getPublicLink()); updatedFile.setShareByLink(localFile.isShareByLink()); - updatedFile.setInConflict(localFile.isInConflict()); + updatedFile.setEtagInConflict(localFile.getEtagInConflict()); } else { // remote eTag will not be updated unless file CONTENTS are synchronized updatedFile.setEtag(""); @@ -382,8 +381,7 @@ public class SynchronizeFolderOperation extends SyncOperation { private void prepareOpsFromLocalKnowledge() throws OperationCancelledException { - // TODO Enable when "On Device" is recovered ? - List children = getStorageManager().getFolderContent(mLocalFolder/*, false*/); + List children = getStorageManager().getFolderContent(mLocalFolder, false); for (OCFile child : children) { /// classify file to sync/download contents later if (child.isFolder()) { @@ -404,7 +402,7 @@ public class SynchronizeFolderOperation extends SyncOperation { /// this should result in direct upload of files that were locally modified SynchronizeFileOperation operation = new SynchronizeFileOperation( child, - (child.isInConflict() ? null : child), + (child.getEtagInConflict() != null ? child : null), mAccount, true, mContext