mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
b78c05e70b
// FREEBIE
30 lines
772 B
Java
30 lines
772 B
Java
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;
|
|
|
|
public class DocumentSlide extends Slide {
|
|
|
|
public DocumentSlide(@NonNull Context context, @NonNull Attachment attachment) {
|
|
super(context, attachment);
|
|
}
|
|
|
|
public DocumentSlide(@NonNull Context context, @NonNull Uri uri,
|
|
@NonNull String contentType, long size,
|
|
@Nullable String fileName)
|
|
{
|
|
super(context, constructAttachmentFromUri(context, uri, contentType, size, true, fileName, false));
|
|
}
|
|
|
|
@Override
|
|
public boolean hasDocument() {
|
|
return true;
|
|
}
|
|
|
|
}
|