OC-922: Synchronize folder, refresh folder size

This commit is contained in:
masensio 2013-08-23 14:53:07 +02:00
parent 472b360675
commit 2948f1053e
2 changed files with 8 additions and 1 deletions

View file

@ -947,9 +947,10 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
pushDirname(directory);
cleanSecondFragment();
// Sync Folder
syncFolderOperation(directory.getRemotePath(), directory.getFileId());
// Update folder size on DB
getStorageManager().calculateFolderSize(directory.getFileId());
getStorageManager().calculateFolderSize(directory.getParentId());
}

View file

@ -130,10 +130,16 @@ public class OCFileListFragment extends ExtendedListFragment implements EditName
if(mFile != null){
DataStorageManager storageManager = mContainerActivity.getStorageManager();
parentDir = storageManager.getFileById(mFile.getParentId());
// Update folder size on DB
storageManager.calculateFolderSize(mFile.getFileId());
mFile = parentDir;
}
listDirectory(parentDir);
mContainerActivity.syncFolderOperation(mFile.getRemotePath(), mFile.getParentId());
}