link jid in trust keys activity to contact details

This commit is contained in:
Daniel Gultsch 2017-08-24 10:09:16 +02:00
parent f4ff644338
commit 617425e7ff
1 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,12 @@ public class TrustKeysActivity extends OmemoActivity implements OnKeyStatusUpdat
final LinearLayout keysContainer = (LinearLayout) layout.findViewById(R.id.foreign_keys_details); final LinearLayout keysContainer = (LinearLayout) layout.findViewById(R.id.foreign_keys_details);
final TextView informNoKeys = (TextView) layout.findViewById(R.id.no_keys_to_accept); final TextView informNoKeys = (TextView) layout.findViewById(R.id.no_keys_to_accept);
header.setText(jid.toString()); header.setText(jid.toString());
header.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
switchToContactDetails(mAccount.getRoster().getContact(jid));
}
});
final Map<String, Boolean> fingerprints = entry.getValue(); final Map<String, Boolean> fingerprints = entry.getValue();
for (final String fingerprint : fingerprints.keySet()) { for (final String fingerprint : fingerprints.keySet()) {
addFingerprintRowWithListeners(keysContainer, mAccount, fingerprint, false, addFingerprintRowWithListeners(keysContainer, mAccount, fingerprint, false,