瀏覽代碼

Recursive refresh of folders in full synchronization does not retrieve information about shares

David A. Velasco 11 年之前
父節點
當前提交
5d53f3c0ba
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/com/owncloud/android/operations/SynchronizeFolderOperation.java

+ 2 - 5
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

@@ -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) {