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