31 lines
883 B
Java
31 lines
883 B
Java
package org.thoughtcrime.securesms.mms;
|
|
|
|
import android.content.Context;
|
|
import android.net.Uri;
|
|
import androidx.annotation.Nullable;
|
|
|
|
import org.session.libsession.messaging.sending_receiving.attachments.Attachment;
|
|
import org.session.libsession.utilities.MediaTypes;
|
|
|
|
public class GifSlide extends ImageSlide {
|
|
|
|
public GifSlide(Context context, Attachment attachment) {
|
|
super(context, attachment);
|
|
}
|
|
|
|
|
|
public GifSlide(Context context, Uri uri, long size, int width, int height) {
|
|
this(context, uri, size, width, height, null);
|
|
}
|
|
|
|
public GifSlide(Context context, Uri uri, long size, int width, int height, @Nullable String caption) {
|
|
super(context, constructAttachmentFromUri(context, uri, MediaTypes.IMAGE_GIF, size, width, height, true, null, caption, false, false));
|
|
}
|
|
|
|
@Override
|
|
@Nullable
|
|
public Uri getThumbnailUri() {
|
|
return getUri();
|
|
}
|
|
}
|