Skip to content

Commit

Permalink
Fixed an issue when user tries to open a folder through DeepLink
Browse files Browse the repository at this point in the history
  • Loading branch information
fesave committed Apr 13, 2022
1 parent e276ab4 commit 20c5564
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20c5564

Please sign in to comment.