mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
don't dispose context for FIDO applications
This commit is contained in:
parent
0d500114be
commit
740851a5ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user