Recursive refresh of folders in full synchronization does not retrieve information...
authorDavid A. Velasco <dvelasco@solidgear.es>
Mon, 17 Mar 2014 11:28:54 +0000 (12:28 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Mon, 17 Mar 2014 11:28:54 +0000 (12:28 +0100)
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

index 5d95707..3176ba3 100644 (file)
@@ -192,11 +192,8 @@ public class SynchronizeFolderOperation extends RemoteOperation {
             sendLocalBroadcast(EVENT_SINGLE_FOLDER_CONTENTS_SYNCED, mLocalFolder.getRemotePath(), result);
         }
         
             sendLocalBroadcast(EVENT_SINGLE_FOLDER_CONTENTS_SYNCED, mLocalFolder.getRemotePath(), result);
         }
         
-        if (result.isSuccess() && mIsShareSupported) {
-            RemoteOperationResult shareResult = refreshSharesForFolder(client);
-            if (shareResult.getCode() != ResultCode.FILE_NOT_FOUND) {
-                result = shareResult;
-            } // else , keep the previous result ; being conservative for servers where Sharing API is supported, but disabled
+        if (result.isSuccess() && mIsShareSupported && !mSyncFullAccount) {
+            refreshSharesForFolder(client); // share result is ignored 
         }
         
         if (!mSyncFullAccount) {            
         }
         
         if (!mSyncFullAccount) {