diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 21:36:38 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 21:36:38 +0100 |
commit | 4e4a767743a62d1f88814e5cf024bf983772df2c (patch) | |
tree | f31d328a9df9f45d5838849631ea97f82f1c4490 /src/eu/siacs/conversations/ui | |
parent | bae741875690400efac68ed49f2ead405ec2ed53 (diff) |
added display of own fingerprint
Diffstat (limited to 'src/eu/siacs/conversations/ui')
-rw-r--r-- | src/eu/siacs/conversations/ui/ManageAccountActivity.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/eu/siacs/conversations/ui/ManageAccountActivity.java index 7cf39e78..8798a74c 100644 --- a/src/eu/siacs/conversations/ui/ManageAccountActivity.java +++ b/src/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -12,6 +12,7 @@ import eu.siacs.conversations.xmpp.OnTLSExceptionReceived; import eu.siacs.conversations.xmpp.XmppConnection; import android.app.Activity; import android.app.AlertDialog; +import android.content.ClipData.Item; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; @@ -286,6 +287,18 @@ public class ManageAccountActivity extends XmppActivity { } } } + } else if (item.getItemId() == R.id.mgmt_otr_key) { + AlertDialog.Builder builder = new AlertDialog.Builder(activity); + builder.setTitle("OTR Fingerprint"); + String fingerprintTxt = selectedAccountForActionMode.getOtrFingerprint(getApplicationContext()); + View view = (View) getLayoutInflater().inflate(R.layout.otr_fingerprint, null); + if (fingerprintTxt!=null) { + TextView fingerprint = (TextView) view.findViewById(R.id.otr_fingerprint); + fingerprint.setText(fingerprintTxt); + } + builder.setView(view); + builder.setPositiveButton("Done", null); + builder.create().show(); } else if (item.getItemId() == R.id.mgmt_account_info) { AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setTitle(getString(R.string.account_info)); |