|
|
|
@ -16,13 +16,13 @@
|
|
|
|
|
*/
|
|
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.IdentityKey;
|
|
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.widget.Button;
|
|
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.IdentityKey;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Activity for displaying an identity key.
|
|
|
|
|
*
|
|
|
|
@ -61,14 +61,13 @@ public class ViewIdentityActivity extends KeyScanningActivity {
|
|
|
|
|
private void initializeResources() {
|
|
|
|
|
this.identityKey = (IdentityKey)getIntent().getParcelableExtra("identity_key");
|
|
|
|
|
this.identityFingerprint = (TextView)findViewById(R.id.identity_fingerprint);
|
|
|
|
|
this.okButton = (Button)findViewById(R.id.ok_button);
|
|
|
|
|
this.okButton = (Button)findViewById(R.id.ok_button);
|
|
|
|
|
this.compareButton = (Button)findViewById(R.id.compare_button);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private class CompareListener implements View.OnClickListener {
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
registerForContextMenu(compareButton);
|
|
|
|
|
compareButton.showContextMenu();
|
|
|
|
|
initiateDisplay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|