diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageTopView.java b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageTopView.java index 0329d528e..3a65697b4 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageTopView.java +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageTopView.java @@ -51,6 +51,7 @@ public class MessageTopView extends LinearLayout { private ViewGroup containerView; private Button mDownloadRemainder; private AttachmentViewCallback attachmentCallback; + private View extraHeaderContainer; private Button showPicturesButton; private boolean isShowingProgress; private boolean showPicturesButtonClicked; @@ -78,6 +79,7 @@ public class MessageTopView extends LinearLayout { mDownloadRemainder = findViewById(R.id.download_remainder); mDownloadRemainder.setVisibility(View.GONE); + extraHeaderContainer = findViewById(R.id.extra_header_container); showPicturesButton = findViewById(R.id.show_pictures); setShowPicturesButtonListener(); @@ -264,11 +266,11 @@ public class MessageTopView extends LinearLayout { } private void showShowPicturesButton() { - showPicturesButton.setVisibility(View.VISIBLE); + extraHeaderContainer.setVisibility(View.VISIBLE); } private void hideShowPicturesButton() { - showPicturesButton.setVisibility(View.GONE); + extraHeaderContainer.setVisibility(View.GONE); } private boolean shouldAutomaticallyLoadPictures(ShowPictures showPicturesSetting, Message message) { diff --git a/app/ui/legacy/src/main/res/layout/message.xml b/app/ui/legacy/src/main/res/layout/message.xml index ef38a18c1..1ac80286d 100644 --- a/app/ui/legacy/src/main/res/layout/message.xml +++ b/app/ui/legacy/src/main/res/layout/message.xml @@ -2,7 +2,7 @@ -