mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #10211 from nextcloud/videoInGallery
Play video in gallery
This commit is contained in:
commit
b2b80c031b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue