mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
6fa7eca60b
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.
31 lines
873 B
Java
31 lines
873 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;
|
|
import org.thoughtcrime.securesms.util.StorageUtil;
|
|
|
|
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, 0, 0, true, StorageUtil.getCleanFileName(fileName), null, false, false));
|
|
}
|
|
|
|
@Override
|
|
public boolean hasDocument() {
|
|
return true;
|
|
}
|
|
|
|
}
|