From 383702bf6adb5566bcf64766965b1bec56a57ef3 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 4 Jul 2022 17:53:33 +0200 Subject: [PATCH] small fix --- .../java/app/fedilab/android/ui/drawer/ComposeAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java index 35ac4ad8f..d05de3d89 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java @@ -1073,7 +1073,8 @@ public class ComposeAdapter extends RecyclerView.Adapter= instanceInfo.configuration.statusesConf.max_media_attachments) { + if (statusDraft.media_attachments != null && + ((instanceInfo != null && statusDraft.media_attachments.size() >= instanceInfo.configuration.statusesConf.max_media_attachments) || (instanceInfo == null && statusDraft.media_attachments.size() >= 4))) { holder.binding.buttonAttachImage.setEnabled(false); holder.binding.buttonAttachVideo.setEnabled(false); holder.binding.buttonAttachAudio.setEnabled(false);