Merge pull request #6351 from nextcloud/castException

rich workspace not in folder picker activity
This commit is contained in:
Andy Scherzinger 2020-06-24 12:52:36 +02:00 committed by GitHub
commit 3e05624064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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