fix streaming

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-12-13 15:53:35 +01:00
parent 3079073da6
commit d45f047a38
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -906,9 +906,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
.isMediaStreamingSupported()) {
// stream media preview on >= NC14
((FileDisplayActivity) mContainerActivity).startMediaPreview(file, 0, true, true, true);
}
if (capability.getRichDocumentsMimeTypeList().contains(file.getMimeType()) &&
} else if (capability.getRichDocumentsMimeTypeList().contains(file.getMimeType()) &&
android.os.Build.VERSION.SDK_INT >= RichDocumentsWebView.MINIMUM_API &&
capability.getRichDocumentsDirectEditing().isTrue()) {
mContainerActivity.getFileOperationsHelper().openFileAsRichDocument(file, getContext());