mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Fix bad flag parsing on attachment pointers.
This commit is contained in:
@@ -6,6 +6,7 @@ import android.net.Uri;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import org.thoughtcrime.securesms.attachments.Attachment;
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.MediaUtil;
|
||||
|
||||
public class GifSlide extends ImageSlide {
|
||||
@@ -22,7 +23,23 @@ public class GifSlide extends ImageSlide {
|
||||
}
|
||||
|
||||
public GifSlide(Context context, Uri uri, long size, int width, int height, boolean borderless, @Nullable String caption) {
|
||||
super(context, constructAttachmentFromUri(context, uri, MediaUtil.IMAGE_GIF, size, width, height, true, null, caption, null, null, null, false, borderless, true, false));
|
||||
super(context, constructAttachmentFromUri(context,
|
||||
uri,
|
||||
MediaUtil.IMAGE_GIF,
|
||||
size,
|
||||
width,
|
||||
height,
|
||||
true,
|
||||
null,
|
||||
caption,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
false,
|
||||
borderless,
|
||||
FeatureFlags.mp4GifSendSupport(),
|
||||
false));
|
||||
|
||||
this.borderless = borderless;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user