From c36ef88e648b10010d528190df6a091a71f41afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Thu, 3 Apr 2014 15:42:57 +0200 Subject: [PATCH] Hide lookup key button explicitly, previously it was still visible after downloading a key --- src/com/fsck/k9/view/MessageOpenPgpView.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/view/MessageOpenPgpView.java b/src/com/fsck/k9/view/MessageOpenPgpView.java index 0b4f2c808..758cb5c28 100644 --- a/src/com/fsck/k9/view/MessageOpenPgpView.java +++ b/src/com/fsck/k9/view/MessageOpenPgpView.java @@ -140,6 +140,7 @@ public class MessageOpenPgpView extends LinearLayout { MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor( R.color.openpgp_red)); + mGetKeyButton.setVisibility(View.GONE); mSignatureStatusImage.setImageResource(R.drawable.overlay_error); mSignatureLayout.setVisibility(View.GONE); break; @@ -154,6 +155,7 @@ public class MessageOpenPgpView extends LinearLayout { MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor( R.color.openpgp_green)); + mGetKeyButton.setVisibility(View.GONE); mSignatureUserId.setText(signatureResult.getUserId()); mSignatureStatusImage.setImageResource(R.drawable.overlay_ok); mSignatureLayout.setVisibility(View.VISIBLE); @@ -167,10 +169,10 @@ public class MessageOpenPgpView extends LinearLayout { else { mText.setText(R.string.openpgp_successful_decryption_unknown_signature); } - mGetKeyButton.setVisibility(View.VISIBLE); MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor( R.color.openpgp_orange)); - + + mGetKeyButton.setVisibility(View.VISIBLE); mSignatureUserId.setText(R.string.openpgp_signature_unknown); mSignatureStatusImage.setImageResource(R.drawable.overlay_error); mSignatureLayout.setVisibility(View.VISIBLE); @@ -187,6 +189,7 @@ public class MessageOpenPgpView extends LinearLayout { MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor( R.color.openpgp_orange)); + mGetKeyButton.setVisibility(View.GONE); mSignatureUserId.setText(signatureResult.getUserId()); mSignatureStatusImage.setImageResource(R.drawable.overlay_ok); mSignatureLayout.setVisibility(View.VISIBLE);