Update our media send flow to allow users to send multiple images/videos at once. This change includes: - New in-app media picker flow. - Ability to caption images and videos. - Image editing tools are made more prominent in the flow. - Some fixes to the image editing tools.
30 lines
863 B
Java
30 lines
863 B
Java
package org.thoughtcrime.securesms.mms;
|
|
|
|
import android.content.Context;
|
|
import android.net.Uri;
|
|
import android.support.annotation.Nullable;
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
import org.thoughtcrime.securesms.util.MediaUtil;
|
|
|
|
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, MediaUtil.IMAGE_GIF, size, width, height, true, null, caption, false, false));
|
|
}
|
|
|
|
@Override
|
|
@Nullable
|
|
public Uri getThumbnailUri() {
|
|
return getUri();
|
|
}
|
|
}
|