From 5b6475cc842a9d1fdeaf75901c1e31df37d2d490 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Mon, 21 Oct 2013 12:14:44 +0200 Subject: [PATCH] Keep saved the calculated size of child-folders when a folders is refreshed --- src/com/owncloud/android/operations/SynchronizeFolderOperation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java index f16a1f3e..32c27bec 100644 --- a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java @@ -356,6 +356,9 @@ public class SynchronizeFolderOperation extends RemoteOperation { remoteFile.setModificationTimestampAtLastSyncForData(localFile.getModificationTimestampAtLastSyncForData()); remoteFile.setStoragePath(localFile.getStoragePath()); remoteFile.setEtag(localFile.getEtag()); // eTag will not be updated unless contents are synchronized (Synchronize[File|Folder]Operation with remoteFile as parameter) + if (remoteFile.isFolder()) { + remoteFile.setFileLength(localFile.getFileLength()); // TODO move operations about size of folders to FileContentProvider + } } else { remoteFile.setEtag(""); // remote eTag will not be updated unless contents are synchronized (Synchronize[File|Folder]Operation with remoteFile as parameter) } -- 2.11.0