mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Convert AttachmentTable and models to kotlin.
This commit is contained in:
committed by
Alex Hart
parent
888a40a5c4
commit
3554f82ea3
@@ -329,15 +329,15 @@ public final class MultiShareSender {
|
||||
: thumbnail.getUri() == null
|
||||
? null
|
||||
: new ImageSlide(context,
|
||||
thumbnail.getUri(),
|
||||
thumbnail.getContentType(),
|
||||
thumbnail.getSize(),
|
||||
thumbnail.getWidth(),
|
||||
thumbnail.getHeight(),
|
||||
thumbnail.isBorderless(),
|
||||
thumbnail.getCaption(),
|
||||
thumbnail.getBlurHash(),
|
||||
thumbnail.getTransformProperties()).asAttachment()
|
||||
thumbnail.getUri(),
|
||||
thumbnail.contentType,
|
||||
thumbnail.size,
|
||||
thumbnail.width,
|
||||
thumbnail.height,
|
||||
thumbnail.borderless,
|
||||
thumbnail.caption,
|
||||
thumbnail.blurHash,
|
||||
thumbnail.transformProperties).asAttachment()
|
||||
)
|
||||
));
|
||||
}
|
||||
@@ -345,17 +345,17 @@ public final class MultiShareSender {
|
||||
|
||||
private static Slide ensureDefaultQuality(@NonNull Context context, @NonNull ImageSlide imageSlide) {
|
||||
Attachment attachment = imageSlide.asAttachment();
|
||||
if (attachment.getTransformProperties().getSentMediaQuality() == SentMediaQuality.HIGH.getCode()) {
|
||||
if (attachment.transformProperties.sentMediaQuality == SentMediaQuality.HIGH.getCode()) {
|
||||
return new ImageSlide(
|
||||
context,
|
||||
attachment.getUri(),
|
||||
attachment.getContentType(),
|
||||
attachment.getSize(),
|
||||
attachment.getWidth(),
|
||||
attachment.getHeight(),
|
||||
attachment.isBorderless(),
|
||||
attachment.getCaption(),
|
||||
attachment.getBlurHash(),
|
||||
attachment.contentType,
|
||||
attachment.size,
|
||||
attachment.width,
|
||||
attachment.height,
|
||||
attachment.borderless,
|
||||
attachment.caption,
|
||||
attachment.blurHash,
|
||||
AttachmentTable.TransformProperties.empty()
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user