mirror of https://github.com/nextcloud/android
Minor changes
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
parent
dec9580cca
commit
1489aaa7ef
|
@ -242,7 +242,7 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
if (file == null) {
|
||||
throw new IllegalStateException("Instanced with a NULL OCFile");
|
||||
}
|
||||
if (!MimeTypeUtil.isImage(file) && !MimeTypeUtil.isVideo(file)) {
|
||||
if (!canBePreviewed(file)) {
|
||||
throw new IllegalArgumentException("Non-media file passed as argument");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue