fix crash in NfcTransport.isConnected
This commit is contained in:
@@ -82,7 +82,13 @@ public class NfcTransport implements Transport {
|
||||
|
||||
@Override
|
||||
public boolean isConnected() {
|
||||
try {
|
||||
return mIsoCard != null && mIsoCard.isConnected();
|
||||
} catch (SecurityException e) {
|
||||
// We sometimes get this here after token is disconnected:
|
||||
// java.lang.SecurityException: Permission Denial: Tag ( ID: 04 17 37 B3 71 24 80 ) is out of date
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user