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()); } }