Merge pull request #10211 from nextcloud/videoInGallery

Play video in gallery
This commit is contained in:
Álvaro Brey 2022-05-09 09:44:41 +02:00 committed by GitHub
commit b2b80c031b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,6 +165,8 @@ public class PreviewImagePagerAdapter extends FragmentStatePagerAdapter {
} else { } else {
if (file.isEncrypted()) { if (file.isEncrypted()) {
fragment = FileDownloadFragment.newInstance(file, user, mObsoletePositions.contains(i)); fragment = FileDownloadFragment.newInstance(file, user, mObsoletePositions.contains(i));
} else if (PreviewMediaFragment.canBePreviewed(file)) {
fragment = PreviewMediaFragment.newInstance(file, user, 0, false);
} else { } else {
fragment = PreviewImageFragment.newInstance(file, mObsoletePositions.contains(i), true); fragment = PreviewImageFragment.newInstance(file, mObsoletePositions.contains(i), true);
} }