Fix lint false positive

This commit is contained in:
Benoit Marty 2023-11-08 17:49:04 +01:00
parent 83084f6481
commit 2c75f41072

View file

@ -314,9 +314,9 @@ class BiometricHelper @AssistedInject constructor(
fallbackFragment.onDismiss = { cancelPrompt() }
fallbackFragment.authenticationFlow = authenticationFLow
activity.supportFragmentManager.beginTransaction()
val transaction = activity.supportFragmentManager.beginTransaction()
.runOnCommit { scope.launch { showPrompt() } }
.apply { fallbackFragment.show(this, FALLBACK_BIOMETRIC_FRAGMENT_TAG) }
fallbackFragment.show(transaction, FALLBACK_BIOMETRIC_FRAGMENT_TAG)
} else {
scope.launch { showPrompt() }
}