open ViewKeyActivity by subkey in NfcBaseActivity

This commit is contained in:
Vincent Breitmoser 2015-05-17 01:57:26 +02:00
parent a79d7bd1c2
commit fb96b6dfa9

View File

@ -222,11 +222,12 @@ public abstract class BaseNfcActivity extends BaseActivity {
final String nfcUserId = nfcGetUserId(); final String nfcUserId = nfcGetUserId();
final byte[] nfcAid = nfcGetAid(); final byte[] nfcAid = nfcGetAid();
final long masterKeyId = KeyFormattingUtils.getKeyIdFromFingerprint(nfcFingerprints); final long subKeyId = KeyFormattingUtils.getKeyIdFromFingerprint(nfcFingerprints);
try { try {
CachedPublicKeyRing ring = new ProviderHelper(this).getCachedPublicKeyRing(masterKeyId); CachedPublicKeyRing ring = new ProviderHelper(this).getCachedPublicKeyRing(
ring.getMasterKeyId(); KeyRings.buildUnifiedKeyRingsFindBySubkeyUri(subKeyId));
long masterKeyId = ring.getMasterKeyId();
Intent intent = new Intent( Intent intent = new Intent(
BaseNfcActivity.this, ViewKeyActivity.class); BaseNfcActivity.this, ViewKeyActivity.class);