diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-03-10 12:57:05 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-03-10 18:16:20 +0300 |
commit | 181b2ff9950e0d15e1d2a99808f6164f5616ba18 (patch) | |
tree | 87319a775438a8645abc71644b73d104c23eef3e /app | |
parent | 8c0b34adcb59b81446b2e7aea160731bca7803cc (diff) |
Fix build
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/util/AttachmentUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/util/AttachmentUtil.java b/app/src/main/java/it/niedermann/nextcloud/deck/util/AttachmentUtil.java index d41fa92f1..d1567fcf2 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/util/AttachmentUtil.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/util/AttachmentUtil.java @@ -42,7 +42,7 @@ public class AttachmentUtil { public static String getThumbnailUrl(@NonNull Version version, @NonNull String accountUrl, @NonNull Long cardRemoteId, @NonNull Attachment attachment, @Px int previewSize) { return version.supportsFileAttachments() && EAttachmentType.FILE.equals(attachment.getType()) && - !TextUtils.isEmpty(attachment.getFileid()) + attachment.getFileid() != null ? accountUrl + "/index.php/core/preview?fileId=" + attachment.getFileid() + "&x=" + previewSize + "&y=" + previewSize : getRemoteOrLocalUrl(accountUrl, cardRemoteId, attachment); } |