Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFCCardReader bug #22

Open
kuvandikov opened this issue Nov 30, 2023 · 0 comments
Open

NFCCardReader bug #22

kuvandikov opened this issue Nov 30, 2023 · 0 comments

Comments

@kuvandikov
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant