Skip to content

Commit

Permalink
Bugfix: Make froground dispatch work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikarus23 committed Nov 22, 2021
1 parent 4b5b020 commit d1fba51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public static void enableNfcForegroundDispatch(Activity targetActivity) {
targetActivity.getClass()).addFlags(
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(
targetActivity, 0, intent, PendingIntent.FLAG_IMMUTABLE);
targetActivity, 0, intent, PendingIntent.FLAG_MUTABLE);
try {
mNfcAdapter.enableForegroundDispatch(
targetActivity, pendingIntent, null, new String[][]{
Expand Down

0 comments on commit d1fba51

Please sign in to comment.