mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-31 07:10:14 -05:00
Hide lookup key button explicitly, previously it was still visible after downloading a key
This commit is contained in:
parent
16ec0337d1
commit
c36ef88e64
@ -140,6 +140,7 @@ public class MessageOpenPgpView extends LinearLayout {
|
|||||||
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
||||||
R.color.openpgp_red));
|
R.color.openpgp_red));
|
||||||
|
|
||||||
|
mGetKeyButton.setVisibility(View.GONE);
|
||||||
mSignatureStatusImage.setImageResource(R.drawable.overlay_error);
|
mSignatureStatusImage.setImageResource(R.drawable.overlay_error);
|
||||||
mSignatureLayout.setVisibility(View.GONE);
|
mSignatureLayout.setVisibility(View.GONE);
|
||||||
break;
|
break;
|
||||||
@ -154,6 +155,7 @@ public class MessageOpenPgpView extends LinearLayout {
|
|||||||
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
||||||
R.color.openpgp_green));
|
R.color.openpgp_green));
|
||||||
|
|
||||||
|
mGetKeyButton.setVisibility(View.GONE);
|
||||||
mSignatureUserId.setText(signatureResult.getUserId());
|
mSignatureUserId.setText(signatureResult.getUserId());
|
||||||
mSignatureStatusImage.setImageResource(R.drawable.overlay_ok);
|
mSignatureStatusImage.setImageResource(R.drawable.overlay_ok);
|
||||||
mSignatureLayout.setVisibility(View.VISIBLE);
|
mSignatureLayout.setVisibility(View.VISIBLE);
|
||||||
@ -167,10 +169,10 @@ public class MessageOpenPgpView extends LinearLayout {
|
|||||||
else {
|
else {
|
||||||
mText.setText(R.string.openpgp_successful_decryption_unknown_signature);
|
mText.setText(R.string.openpgp_successful_decryption_unknown_signature);
|
||||||
}
|
}
|
||||||
mGetKeyButton.setVisibility(View.VISIBLE);
|
|
||||||
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
||||||
R.color.openpgp_orange));
|
R.color.openpgp_orange));
|
||||||
|
|
||||||
|
mGetKeyButton.setVisibility(View.VISIBLE);
|
||||||
mSignatureUserId.setText(R.string.openpgp_signature_unknown);
|
mSignatureUserId.setText(R.string.openpgp_signature_unknown);
|
||||||
mSignatureStatusImage.setImageResource(R.drawable.overlay_error);
|
mSignatureStatusImage.setImageResource(R.drawable.overlay_error);
|
||||||
mSignatureLayout.setVisibility(View.VISIBLE);
|
mSignatureLayout.setVisibility(View.VISIBLE);
|
||||||
@ -187,6 +189,7 @@ public class MessageOpenPgpView extends LinearLayout {
|
|||||||
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
|
||||||
R.color.openpgp_orange));
|
R.color.openpgp_orange));
|
||||||
|
|
||||||
|
mGetKeyButton.setVisibility(View.GONE);
|
||||||
mSignatureUserId.setText(signatureResult.getUserId());
|
mSignatureUserId.setText(signatureResult.getUserId());
|
||||||
mSignatureStatusImage.setImageResource(R.drawable.overlay_ok);
|
mSignatureStatusImage.setImageResource(R.drawable.overlay_ok);
|
||||||
mSignatureLayout.setVisibility(View.VISIBLE);
|
mSignatureLayout.setVisibility(View.VISIBLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user