You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-11-30 18:20:17.382 32054-32054 AndroidRuntime com.paymentcardreader E FATAL EXCEPTION: main
Process: com.paymentcardreader, PID: 32054
java.lang.IllegalArgumentException: com.paymentcardreader: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:408)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:491)
at android.app.PendingIntent.getActivity(PendingIntent.java:477)
at android.app.PendingIntent.getActivity(PendingIntent.java:441)
at com.paymentcardreader.reader.nfc.NFCCardReader$nfcAdapterIntent$2.invoke(NFCCardReader.kt:27)
at com.paymentcardreader.reader.nfc.NFCCardReader$nfcAdapterIntent$2.invoke(NFCCardReader.kt:25)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.paymentcardreader.reader.nfc.NFCCardReader.getNfcAdapterIntent(NFCCardReader.kt:25)
at com.paymentcardreader.reader.nfc.NFCCardReader.enableForegroundDispatch(NFCCardReader.kt:44)
at com.paymentcardreader.ScanViewModel.enableForegroundDispatch(ScanViewModel.kt:34)
at com.paymentcardreader.ScanViewModel.scan(ScanViewModel.kt:26)
at com.paymentcardreader.databinding.FragmentCardInfoPreviewBindingImpl._internalCallbackOnClick(FragmentCardInfoPreviewBindingImpl.java:230)
at com.paymentcardreader.generated.callback.OnClickListener.onClick(OnClickListener.java:11)
at android.view.View.performClick(View.java:7892)
at android.widget.TextView.performClick(TextView.java:16220)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1202)
at android.view.View.performClickInternal(View.java:7869)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:30891)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: