aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-07-09 14:26:19 +0200
committerAndreas Straub <andy@strb.org>2015-07-09 14:26:19 +0200
commit2afb36d89144b692bc7cd2ce3682f9b2b8842854 (patch)
tree98a6b873cc5cac1a7d937c8ca3bb7f3e1e3217bf /src/main/java/eu
parentbdc9f9a44f337ab595a3570833dc6a0558df904c (diff)
Display trust status in ContactDetailsActivityaxolotl-alpha
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
index 33861f82..4ff47f9e 100644
--- a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
@@ -383,11 +383,14 @@ public class ContactDetailsActivity extends XmppActivity implements OnAccountUpd
View view = inflater.inflate(R.layout.contact_key, keys, false);
TextView key = (TextView) view.findViewById(R.id.key);
TextView keyType = (TextView) view.findViewById(R.id.key_type);
+ TextView keyTrust = (TextView) view.findViewById(R.id.key_trust);
ImageButton remove = (ImageButton) view
.findViewById(R.id.button_remove);
remove.setVisibility(View.VISIBLE);
+ keyTrust.setVisibility(View.VISIBLE);
keyType.setText("Axolotl Fingerprint");
key.setText(CryptoHelper.prettifyFingerprint(identityKey.getFingerprint()));
+ keyTrust.setText(contact.getAccount().getAxolotlService().getFingerprintTrust(contact.getJid().toBareJid().toString(), identityKey.getFingerprint().replaceAll("\\s","")).toString());
keys.addView(view);
remove.setOnClickListener(new OnClickListener() {