diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2015-04-20 17:38:36 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2015-04-20 19:12:01 -0400 |
commit | 9d56fc9768c10cc0e0331cda787abff64186371b (patch) | |
tree | a722c60d2078004e8707862b151f72a991fd8c8c /OpenKeychain/src/main/java | |
parent | 104fdcd6bf0442f44a5c591101d8a232bf6455ef (diff) | |
download | open-keychain-9d56fc9768c10cc0e0331cda787abff64186371b.tar.gz open-keychain-9d56fc9768c10cc0e0331cda787abff64186371b.tar.bz2 open-keychain-9d56fc9768c10cc0e0331cda787abff64186371b.zip |
Fix for initialization failure when card returns FCI in data field.
Diffstat (limited to 'OpenKeychain/src/main/java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/base/BaseNfcActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/base/BaseNfcActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/base/BaseNfcActivity.java index 5990a8b5a..1d09b281f 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/base/BaseNfcActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/base/BaseNfcActivity.java @@ -200,7 +200,7 @@ public abstract class BaseNfcActivity extends BaseActivity { + "06" // Lc (number of bytes) + "D27600012401" // Data (6 bytes) + "00"; // Le - if ( ! nfcCommunicate(opening).equals(accepted)) { // activate connection + if ( ! nfcCommunicate(opening).endsWith(accepted)) { // activate connection throw new IOException("Initialization failed!"); } |