From 20c5564fc2182f9337070ee3ca9f98fddf53785c Mon Sep 17 00:00:00 2001 From: Fernando Sanz Date: Wed, 13 Apr 2022 14:13:10 +0200 Subject: [PATCH] Fixed an issue when user tries to open a folder through DeepLink --- .../owncloud/android/ui/activity/FileDisplayActivity.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 bf48f0eebd5..71683a64096 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)