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

Biometry on Android 13, Android 14: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState #587

Closed
petrdvorak opened this issue May 30, 2024 · 0 comments · Fixed by #589
Assignees
Labels

Comments

@petrdvorak
Copy link
Member

When presenting the error dialog on new Android versions, we occasionally see the following error:

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
    androidx.fragment.app.FragmentManager.checkStateLoss(FragmentManager.java:1632)
    androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:1672)
    androidx.fragment.app.BackStackRecord.commitInternal(BackStackRecord.java:341)
    androidx.fragment.app.BackStackRecord.commit(BackStackRecord.java:306)
    androidx.fragment.app.DialogFragment.show(DialogFragment.java:507)
    io.getlime.security.powerauth.biometry.BiometricAuthentication.showErrorDialog(BiometricAuthentication.java:268)
    io.getlime.security.powerauth.biometry.BiometricAuthentication.authenticate(BiometricAuthentication.java:179)
    io.getlime.security.powerauth.sdk.PowerAuthSDK.authenticateUsingBiometry(PowerAuthSDK.java:2264)
    io.getlime.security.powerauth.sdk.PowerAuthSDK.authenticateUsingBiometry(PowerAuthSDK.java:2203)
@petrdvorak petrdvorak added the bug label May 30, 2024
TomasKypta added a commit that referenced this issue Jun 3, 2024
Fix IllegalStateException when showing error dialog
TomasKypta added a commit that referenced this issue Jun 3, 2024
Fix IllegalStateException when showing error dialog in v1.7.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants