mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Add partial share and draft support to CFv2.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user