From 724bb1af23ed5a5caf17392fbac64a9a5b1ed7e2 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Oct 2019 13:05:03 +0200 Subject: [PATCH] Small behavior improvement --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 5f104888da..ec6f6fdf57 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1043,8 +1043,6 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); - bnvActions.setVisibility(View.VISIBLE); for (int i = 0; i < bnvActions.getMenu().size(); i++) bnvActions.getMenu().getItem(i).setVisible(false); @@ -1601,6 +1599,8 @@ public class AdapterMessage extends RecyclerView.Adapter(); properties.setAttachments(message.id, attachments); + grpAttachments.setVisibility(attachments.size() > 0 ? View.VISIBLE : View.GONE); + boolean iencrypted = properties.getValue("iencrypted", message.id); boolean show_inline = properties.getValue("inline", message.id); Log.i("Show inline=" + show_inline); @@ -1611,6 +1611,7 @@ public class AdapterMessage extends RecyclerView.Adapter 1); boolean downloading = false; boolean calendar = false; + List a = new ArrayList<>(); for (EntityAttachment attachment : attachments) { boolean inline = (attachment.isInline() && attachment.isImage());