Browse Source

Revert "Prevent that full synchronization process browses deeper when already knows no change exists under the current folder"

This reverts commit dabcf4dce4b04aec8190570e4ae665b6161d1168.
masensio 11 years ago
parent
commit
d326d100ed
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/com/owncloud/android/syncadapter/FileSyncAdapter.java

+ 8 - 2
src/com/owncloud/android/syncadapter/FileSyncAdapter.java

@@ -339,12 +339,18 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
     private void fetchChildren(OCFile parent, List<OCFile> files, boolean parentEtagChanged) {
     private void fetchChildren(OCFile parent, List<OCFile> files, boolean parentEtagChanged) {
         int i;
         int i;
         OCFile newFile = null;
         OCFile newFile = null;
+        //String etag = null;
+        //boolean syncDown = false;
         for (i=0; i < files.size() && !mCancellation; i++) {
         for (i=0; i < files.size() && !mCancellation; i++) {
             newFile = files.get(i);
             newFile = files.get(i);
             if (newFile.isFolder()) {
             if (newFile.isFolder()) {
-                if(parentEtagChanged) { // prevent go deeper if already know there are no more changes
+                /*
+                etag = newFile.getEtag();
+                syncDown = (parentEtagChanged || etag == null || etag.length() == 0);
+                if(syncDown) { */
                     synchronizeFolder(newFile);
                     synchronizeFolder(newFile);
-                }
+                    //sendLocalBroadcast(EVENT_FULL_SYNC_FOLDER_SIZE_SYNCED, parent.getRemotePath(), null);
+                //}
             }
             }
         }
         }