2019-02-27 03:29:52 +00:00
|
|
|
package org.thoughtcrime.securesms.mms;
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
|
|
import org.thoughtcrime.securesms.util.MediaUtil;
|
|
|
|
|
|
|
|
public class TextSlide extends Slide {
|
|
|
|
|
|
|
|
public TextSlide(@NonNull Context context, @NonNull Attachment attachment) {
|
|
|
|
super(context, attachment);
|
|
|
|
}
|
|
|
|
|
|
|
|
public TextSlide(@NonNull Context context, @NonNull Uri uri, @Nullable String filename, long size) {
|
2019-04-17 14:21:30 +00:00
|
|
|
super(context, constructAttachmentFromUri(context, uri, MediaUtil.LONG_TEXT, size, 0, 0, true, filename, null, null, false, false));
|
2019-02-27 03:29:52 +00:00
|
|
|
}
|
|
|
|
}
|