From: David A. Velasco Date: Mon, 17 Mar 2014 12:02:36 +0000 (+0100) Subject: Prevent that full synchronization process browses deeper when already knows no change... X-Git-Tag: oc-android-1.5.5~5^2~3^2~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/dabcf4dce4b04aec8190570e4ae665b6161d1168?ds=inline;hp=-c Prevent that full synchronization process browses deeper when already knows no change exists under the current folder --- dabcf4dce4b04aec8190570e4ae665b6161d1168 diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index 4f1cd68a..b8e488b0 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -339,18 +339,12 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { private void fetchChildren(OCFile parent, List files, boolean parentEtagChanged) { int i; OCFile newFile = null; - //String etag = null; - //boolean syncDown = false; for (i=0; i < files.size() && !mCancellation; i++) { newFile = files.get(i); if (newFile.isFolder()) { - /* - etag = newFile.getEtag(); - syncDown = (parentEtagChanged || etag == null || etag.length() == 0); - if(syncDown) { */ + if(parentEtagChanged) { // prevent go deeper if already know there are no more changes synchronizeFolder(newFile); - //sendLocalBroadcast(EVENT_FULL_SYNC_FOLDER_SIZE_SYNCED, parent.getRemotePath(), null); - //} + } } }