Fixed bug in synchronization after adding new field to improve the check of changes...
authorDavid A. Velasco <dvelasco@solidgear.es>
Thu, 6 Dec 2012 13:02:09 +0000 (14:02 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Thu, 6 Dec 2012 13:02:09 +0000 (14:02 +0100)
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

index 151af4b..271ea42 100644 (file)
@@ -164,6 +164,7 @@ public class SynchronizeFolderOperation extends RemoteOperation {
                     if (oldFile != null) {
                         file.setKeepInSync(oldFile.keepInSync());
                         file.setLastSyncDateForData(oldFile.getLastSyncDateForData());
                     if (oldFile != null) {
                         file.setKeepInSync(oldFile.keepInSync());
                         file.setLastSyncDateForData(oldFile.getLastSyncDateForData());
+                        file.setModificationTimestampAtLastSyncForData(oldFile.getModificationTimestampAtLastSyncForData());    // not local, but must be kept unchanged when the file contents are not updated
                         checkAndFixForeignStoragePath(oldFile);
                         file.setStoragePath(oldFile.getStoragePath());
                     }
                         checkAndFixForeignStoragePath(oldFile);
                         file.setStoragePath(oldFile.getStoragePath());
                     }