From ab8746ffe98a657c6dafc7a1e2dacf3bd2be064e Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 17 Feb 2015 23:18:46 +0100 Subject: [PATCH] Hide side bar when not showing the crypto header view --- .../com/fsck/k9/ui/messageview/MessageContainerView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/ui/messageview/MessageContainerView.java b/k9mail/src/main/java/com/fsck/k9/ui/messageview/MessageContainerView.java index 715525eb3..c233b06a3 100644 --- a/k9mail/src/main/java/com/fsck/k9/ui/messageview/MessageContainerView.java +++ b/k9mail/src/main/java/com/fsck/k9/ui/messageview/MessageContainerView.java @@ -421,10 +421,11 @@ public class MessageContainerView extends LinearLayout implements OnClickListene openPgpHeaderView.setOpenPgpData(messageViewContainer.signatureResult, messageViewContainer.encrypted, messageViewContainer.pgpPendingIntent); openPgpHeaderView.setCallback(openPgpHeaderViewCallback); + mSidebar.setVisibility(View.VISIBLE); + } else { + mSidebar.setVisibility(View.GONE); } - mSidebar.setVisibility(View.VISIBLE); - if (mText != null) { loadBodyFromText(mText); } else {