Skip to content

Commit

Permalink
Refresh folder when browsing in av offlines and shares/links
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Feb 24, 2023
1 parent 99c60d4 commit 3a054b0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ class MainFileListFragment : Fragment(),
if (getCurrentSpace() == null) {
fileActions?.onCurrentFolderUpdated(it)
}
if (mainFileListViewModel.fileListOption.value.isAllFiles()) {
val fileListOption = mainFileListViewModel.fileListOption.value
val refreshFolderNeeded = fileListOption.isAllFiles() ||
(!fileListOption.isAllFiles() && it.remotePath != ROOT_PATH)
if (refreshFolderNeeded) {
fileOperationsViewModel.performOperation(
FileOperation.RefreshFolderOperation(
folderToRefresh = it,
Expand Down

0 comments on commit 3a054b0

Please sign in to comment.