Add partial share and draft support to CFv2.

This commit is contained in:
Cody Henthorne
2023-05-31 14:12:33 -04:00
parent b9ae537706
commit 693aef5c04
25 changed files with 642 additions and 137 deletions

View File

@@ -92,12 +92,12 @@ public class MediaUtil {
public static @NonNull Slide getSlideForAttachment(Context context, Attachment attachment) {
if (attachment.isSticker()) {
return new StickerSlide(context, attachment);
return new StickerSlide(attachment);
}
switch (getSlideTypeFromContentType(attachment.getContentType())) {
case GIF : return new GifSlide(context, attachment);
case IMAGE : return new ImageSlide(context, attachment);
case GIF : return new GifSlide(attachment);
case IMAGE : return new ImageSlide(attachment);
case VIDEO : return new VideoSlide(context, attachment);
case AUDIO : return new AudioSlide(context, attachment);
case MMS : return new MmsSlide(context, attachment);