2015-07-15 22:42:59 +02:00
|
|
|
package org.thoughtcrime.securesms.mms;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.net.Uri;
|
2015-10-13 03:25:05 +02:00
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
2017-05-09 00:32:59 +02:00
|
|
|
import org.thoughtcrime.securesms.util.MediaUtil;
|
2015-07-15 22:42:59 +02:00
|
|
|
|
|
|
|
public class GifSlide extends ImageSlide {
|
2015-10-13 03:25:05 +02:00
|
|
|
|
|
|
|
public GifSlide(Context context, Attachment attachment) {
|
|
|
|
super(context, attachment);
|
2015-07-28 22:17:01 +02:00
|
|
|
}
|
|
|
|
|
2018-03-20 19:27:11 +01:00
|
|
|
public GifSlide(Context context, Uri uri, long size, int width, int height) {
|
2018-02-07 23:01:37 +01:00
|
|
|
super(context, constructAttachmentFromUri(context, uri, MediaUtil.IMAGE_GIF, size, width, height, true, null, false, false));
|
2015-07-15 22:42:59 +02:00
|
|
|
}
|
|
|
|
|
2015-10-13 03:25:05 +02:00
|
|
|
@Override
|
|
|
|
@Nullable
|
|
|
|
public Uri getThumbnailUri() {
|
|
|
|
return getUri();
|
2015-07-15 22:42:59 +02:00
|
|
|
}
|
|
|
|
}
|