diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index bc51909a4a..951ddb057b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -350,6 +350,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); - ibExpanderAttachments.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - prefs.edit().putBoolean("hide_attachments", !hide_attachments).apply(); - cowner.restart(); - bindAttachments(message, properties.getAttachments(message.id), false); - } - }); - cbInline.setOnCheckedChangeListener(null); cbInline.setChecked(show_inline); cbInline.setVisibility(has_inline && !hide_attachments ? View.VISIBLE : View.GONE); @@ -3565,15 +3563,6 @@ public class AdapterMessage extends RecyclerView.Adapter 1 && suitable && !hide_attachments ? View.VISIBLE : View.GONE); tvNoInternetAttachments.setVisibility(downloading && !suitable && !hide_attachments ? View.VISIBLE : View.GONE); - cbInline.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { - properties.setValue("inline", message.id, isChecked); - cowner.restart(); - bindAttachments(message, properties.getAttachments(message.id), true); - } - }); - rvAttachment.post(new Runnable() { @Override public void run() { @@ -4281,6 +4270,8 @@ public class AdapterMessage extends RecyclerView.Adapter