mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
OC-922: Synchronize folder, refresh folder size
This commit is contained in:
parent
472b360675
commit
2948f1053e
2 changed files with 8 additions and 1 deletions
|
@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue