From a4247063688ef2d559662db1abe3e2ae4952c6a7 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 24 Jun 2020 07:56:58 +0200 Subject: [PATCH] rich workspace not in folder picker activity Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/fragment/OCFileListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index d786acb2ff..e4ab03b281 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -539,7 +539,7 @@ public class OCFileListFragment extends ExtendedListFragment implements @Override public void onHeaderClicked() { - if (!getAdapter().isMultiSelect()) { + if (!getAdapter().isMultiSelect() && mContainerActivity instanceof FileDisplayActivity) { ((FileDisplayActivity) mContainerActivity).startRichWorkspacePreview(getCurrentFile()); } }