Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/4553
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Ensure folder size updates automatically after file replacement

The folder size has been updated automatically after replacing a file during a move operation,
eliminating the need for a manual refresh.

https://github.com/owncloud/android/issues/4505
https://github.com/owncloud/android/pull/4553
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,15 @@ class FileDisplayActivity : FileActivity(),

is UIResult.Success -> {
dismissLoadingDialog()
// auto refresh
file?.let {
fileOperationsViewModel.performOperation(
FileOperation.RefreshFolderOperation(
folderToRefresh = it,
shouldSyncContents = false // Ensure metadata is updated on callBack
)
)
}
val replace = mutableListOf<Boolean?>()
uiResult.data?.let {
showConflictDecisionDialog(uiResult = uiResult, data = it, replace = replace) { data, replace ->
Expand Down Expand Up @@ -1092,6 +1101,15 @@ class FileDisplayActivity : FileActivity(),

is UIResult.Success -> {
dismissLoadingDialog()
// auto refresh
file?.let {
fileOperationsViewModel.performOperation(
FileOperation.RefreshFolderOperation(
folderToRefresh = it,
shouldSyncContents = false // Ensure metadata is updated on callBack
)
)
}
val replace = mutableListOf<Boolean?>()
uiResult.data?.let {
showConflictDecisionDialog(uiResult = uiResult, data = it, replace = replace) { data, replace ->
Expand Down
Loading