瀏覽代碼

Fixed lost of 'shared' attribute during full synchronization process for already known shares

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

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

@@ -336,6 +336,8 @@ public class SynchronizeFolderOperation extends RemoteOperation {
                 if (remoteFile.isFolder()) {
                     remoteFile.setFileLength(localFile.getFileLength()); // TODO move operations about size of folders to FileContentProvider
                 }
+                remoteFile.setPublicLink(localFile.getPublicLink());
+                remoteFile.setShareByLink(localFile.isShareByLink());
             } else {
                 remoteFile.setEtag(""); // remote eTag will not be updated unless contents are synchronized (Synchronize[File|Folder]Operation with remoteFile as parameter)
             }