diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt index bf48f0eebd59..71683a640969 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt @@ -1677,7 +1677,12 @@ class FileDisplayActivity : FileActivity(), FileFragment.ContainerActivity, OnEn private fun manageItem(file: OCFile) { onBrowsedDownTo(file) setFile(file) - setAccount(AccountUtils.getOwnCloudAccountByName(this, file.owner)) + account = AccountUtils.getOwnCloudAccountByName(this, file.owner) + + if(file.isFolder){ + refreshListOfFilesFragment(true) + return + } if (PreviewImageFragment.canBePreviewed(file)) { startImagePreview(file)