rich workspace not in folder picker activity

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-06-24 07:56:58 +02:00
parent 9e6fa5c769
commit a424706368
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

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