Skip to content

Commit

Permalink
Fixed crash when enabeling the FDS (Android 14).
Browse files Browse the repository at this point in the history
  • Loading branch information
ikarus23 committed Jan 27, 2024
1 parent a3decac commit c16b411
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ public static void enableNfcForegroundDispatch(Activity targetActivity) {
mNfcAdapter.enableForegroundDispatch(
targetActivity, pendingIntent, null, new String[][]{
new String[]{NfcA.class.getName()}});
} catch (IllegalStateException ex) {
} catch (IllegalStateException | SecurityException ex) {
Log.d(LOG_TAG, "Error: Could not enable the NFC foreground" +
"dispatch system. The activity was not in foreground.");
}
Expand Down Expand Up @@ -864,7 +864,6 @@ public static boolean hasMifareClassicSupport() {
}
}


mHasMifareClassicSupport = 1;
return true;
}
Expand Down

0 comments on commit c16b411

Please sign in to comment.