don't dispose context for FIDO applications

This commit is contained in:
Adam Velebil 2024-03-19 11:06:16 +01:00
parent 0d500114be
commit 740851a5ed
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -344,7 +344,10 @@ class MainActivity : FlutterFragmentActivity() {
// only recreate the contextManager object if it cannot be reused
if (appContext == OperationContext.Home ||
(appContext == OperationContext.Oath && contextManager is OathManager) ||
(appContext == OperationContext.FidoPasskeys && contextManager is FidoManager)
(appContext in listOf(
OperationContext.FidoPasskeys,
OperationContext.FidoFingerprints
) && contextManager is FidoManager)
) {
// no need to dispose this context
} else {