use wildcard media types, don't crash on preview fail

// FREEBIE
This commit is contained in:
Jake McGinty
2014-10-15 22:26:55 -07:00
parent 6e3751a0c5
commit 31167d11dd
5 changed files with 24 additions and 1 deletions

View File

@@ -38,6 +38,11 @@ public class AudioSlide extends Slide {
super(context, part);
}
@Override
public String getContentType() {
return "audio/*";
}
public AudioSlide(Context context, Uri uri) throws IOException, MediaTooLargeException {
super(context, constructPartFromUri(context, uri));
}

View File

@@ -60,6 +60,11 @@ public class ImageSlide extends Slide {
super(context, masterSecret, part);
}
@Override
public String getContentType() {
return "image/*";
}
public ImageSlide(Context context, Uri uri) throws IOException, BitmapDecodingException {
super(context, constructPartFromUri(context, uri));
}

View File

@@ -39,6 +39,11 @@ public class VideoSlide extends Slide {
super(context, part);
}
@Override
public String getContentType() {
return "video/*";
}
public VideoSlide(Context context, Uri uri) throws IOException, MediaTooLargeException {
super(context, constructPartFromUri(context, uri));
}