Fixed lost of 'shared' attribute during full synchronization process for already...
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 21 Mar 2014 08:05:19 +0000 (09:05 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 21 Mar 2014 08:05:19 +0000 (09:05 +0100)
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

index 3176ba3..68e7857 100644 (file)
@@ -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)
             }