Fix YubiKey import

This commit is contained in:
Dominik Schürmann
2015-07-08 14:14:39 +02:00
parent 1ffcffae15
commit 4760f3f260

View File

@@ -180,18 +180,18 @@ public class CreateKeyActivity extends BaseNfcActivity {
finish(); finish();
} catch (PgpKeyNotFoundException e) { } catch (PgpKeyNotFoundException e) {
// Fragment frag = CreateYubiKeyImportFragment.newInstance( Fragment frag = CreateYubiKeyImportFragment.newInstance(
// mScannedFingerprints, mNfcAid, mNfcUserId); mScannedFingerprints, mNfcAid, mNfcUserId);
loadFragment(frag, FragAction.TO_RIGHT);
}
} else {
// Fragment frag = CreateYubiKeyBlankFragment.newInstance();
// loadFragment(frag, FragAction.TO_RIGHT); // loadFragment(frag, FragAction.TO_RIGHT);
Notify.create(this, Notify.create(this,
"YubiKey key creation is currently not supported. Please follow our FAQ.", "YubiKey key creation is currently not supported. Please follow our FAQ.",
Notify.Style.ERROR Notify.Style.ERROR
).show(); ).show();
} }
} else {
Fragment frag = CreateYubiKeyBlankFragment.newInstance();
loadFragment(frag, FragAction.TO_RIGHT);
}
} }
private boolean containsKeys(byte[] scannedFingerprints) { private boolean containsKeys(byte[] scannedFingerprints) {