From d1fba51b100bf43b7d33d704641f5615f68d0d1e Mon Sep 17 00:00:00 2001 From: ikarus Date: Mon, 22 Nov 2021 19:17:11 +0100 Subject: [PATCH] Bugfix: Make froground dispatch work again. --- .../app/src/main/java/de/syss/MifareClassicTool/Common.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Common.java b/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Common.java index 07f68fc4..34baf7da 100644 --- a/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Common.java +++ b/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Common.java @@ -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[][]{